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