From c9f1ecd6239a2fdc494fa22ccbfbfd12032a801a Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Sat, 1 Oct 2022 13:36:20 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Added=20new=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-apk-artifact.yml | 43 ++++++++++++++++++++++++ .github/workflows/pr-checks.yml | 2 +- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build-apk-artifact.yml diff --git a/.github/workflows/build-apk-artifact.yml b/.github/workflows/build-apk-artifact.yml new file mode 100644 index 0000000..45df6bb --- /dev/null +++ b/.github/workflows/build-apk-artifact.yml @@ -0,0 +1,43 @@ +name: Build Revanced APK for PR +# Enable Buildkit and let compose use it to speed up image building +env: + DOCKER_BUILDKIT: 1 + COMPOSE_DOCKER_CLI_BUILD: 1 +on: + workflow_dispatch: + workflow_call: + +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true +jobs: + build-apk: + name: APK Build + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - name: Check out Git repository + uses: actions/checkout@v3 + + - name: Update Env for custom build + run: | + echo "${{ secrets.ENVS }}" >> .env + + - name: Build Revanced APKs + run: | + docker-compose up + + - name: Get Date + id: get-date + run: | + echo ::set-output name=date::$(TZ='Asia/Kolkata' date +"%Y.%m.%d-%H.%M.%S") + + - name: Upload Build Artifact + uses: actions/upload-artifact@v3 + with: + name: Build APKs + path: | + apks/*-output.apk + apks/VancedMicroG.apk" + if-no-files-found: error diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index e6a0ea7..2273968 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -11,4 +11,4 @@ jobs: linter: uses: ./.github/workflows/linter.yml build-apk: - uses: ./.github/workflows/build-apk.yml + uses: ./.github/workflows/build-apk-artifact.yml