From d50c0196e9aec74650dba7cf00dd8cba2932fa59 Mon Sep 17 00:00:00 2001 From: gechoto <124326167+gechoto@users.noreply.github.com> Date: Sun, 5 Jan 2025 04:46:08 +0000 Subject: [PATCH] also build foss flavor for PRs --- .github/workflows/build_pr.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/build_pr.yml b/.github/workflows/build_pr.yml index ac657000a..47c9811f3 100644 --- a/.github/workflows/build_pr.yml +++ b/.github/workflows/build_pr.yml @@ -27,3 +27,26 @@ jobs: with: name: app path: app/build/outputs/apk/full/debug/*.apk + + build-foss: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: 17 + distribution: "zulu" + cache: 'gradle' + + - name: Build debug APK and run jvm tests + run: ./gradlew assembleFossDebug lintFossDebug testFossDebugUnitTest --stacktrace -DskipFormatKtlint + env: + PULL_REQUEST: 'true' + + - name: Upload APK + uses: actions/upload-artifact@v4 + with: + name: app-foss + path: app/build/outputs/apk/foss/debug/*.apk