diff --git a/.github/workflows/build_check.yml b/.github/workflows/build_check.yml index 3fa38e087b..c19f80c4d8 100644 --- a/.github/workflows/build_check.yml +++ b/.github/workflows/build_check.yml @@ -34,7 +34,7 @@ jobs: - name: Build and run tests if: startsWith(env.VERSION_TAG, 'r') != true && startsWith(env.VERSION_TAG, 'v') != true - run: ./gradlew assembleDevDebug testDevDebugUnitTest + run: ./gradlew assembleDevDebug testDevDebugUnitTest assembleStandardRelease - name: Publish test report uses: mikepenz/action-junit-report@v4 @@ -44,7 +44,23 @@ jobs: detailed_summary: true report_paths: '**/build/test-results/test*/TEST-*.xml' - - name: Upload APK to artifact + - name: Run tests against release variant + if: startsWith(env.VERSION_TAG, 'r') != true && startsWith(env.VERSION_TAG, 'v') != true + run: ./gradlew testStandardReleaseUnitTest + + - name: Upload debug APK to artifact uses: actions/upload-artifact@v4 with: - path: app/build/outputs/apk/dev/debug/*.apk + path: app/build/outputs/apk/dev/debug/app*-arm64-v8a-*.apk + + - name: Upload R8 APK to artifact + uses: actions/upload-artifact@v4 + with: + name: arm64-v8a-${{ github.sha }} + path: app/build/outputs/apk/standard/release/app-standard-arm64-v8a-release-unsigned.apk + + - name: Upload R8 mapping + uses: actions/upload-artifact@v4 + with: + name: mapping-${{ github.sha }} + path: app/build/outputs/mapping/standardRelease diff --git a/.github/workflows/build_push.yml b/.github/workflows/build_push.yml index 1f5e7f8831..829cd0dab6 100644 --- a/.github/workflows/build_push.yml +++ b/.github/workflows/build_push.yml @@ -84,6 +84,20 @@ jobs: if: startsWith(env.VERSION_TAG, 'r') run: ./gradlew assembleStandardNightly testStandardNightlyUnitTest + - name: Upload R8 APK to artifact + uses: actions/upload-artifact@v4 + if: env.VERSION_TAG != '' + with: + name: arm64-v8a-${{ github.sha }} + path: app/build/outputs/apk/standard/*/app*-arm64-v8a-*.apk + + - name: Upload R8 mapping + uses: actions/upload-artifact@v4 + if: env.VERSION_TAG != '' + with: + name: mapping-${{ github.sha }} + path: app/build/outputs/mapping/standard* + - name: Publish test report uses: mikepenz/action-junit-report@v4 if: success() || failure()