budctlc2b9d4b
Release workflow: build the APK without testReleaseUnitTest
The v0.1.4 run failed: AGP 9 makes unit-test tasks for the debug build only, so testReleaseUnitTest does not exist. The app's JVM tests run in CI on every commit (testDebugUnitTest); the release job now builds the APK and checks its signature. Nothing was published.
+4 −2
1 file changed
- M .github/workflows/release.yml +4 −2
| @@ -71,13 +71,15 @@ jobs: | |||
| 71 | 71 | run: | | |
| 72 | 72 | test -n "$KEYSTORE" || { echo "the BUDCTL_KEYSTORE_BASE64 secret is not set"; exit 1; } | |
| 73 | 73 | echo "$KEYSTORE" | base64 -d > "$RUNNER_TEMP/budctl-release.jks" | |
| 74 | − | - name: Build, test and check the APK | |
| 74 | + | # The app's JVM tests run in CI (testDebugUnitTest): AGP makes unit-test tasks for the debug | |
| 75 | + | # build only. | |
| 76 | + | - name: Build and check the APK | |
| 75 | 77 | working-directory: android | |
| 76 | 78 | env: | |
| 77 | 79 | BUDCTL_KEYSTORE: ${{ runner.temp }}/budctl-release.jks | |
| 78 | 80 | BUDCTL_KEYSTORE_PASSWORD: ${{ secrets.BUDCTL_KEYSTORE_PASSWORD }} | |
| 79 | 81 | run: | | |
| 80 | − | ./gradlew --no-daemon testReleaseUnitTest assembleRelease | |
| 82 | + | ./gradlew --no-daemon assembleRelease | |
| 81 | 83 | "$ANDROID_HOME/build-tools/36.0.0/apksigner" verify --print-certs app/build/outputs/apk/release/app-release.apk | |
| 82 | 84 | - name: Package | |
| 83 | 85 | run: | | |