android-ci: pass --stacktrace to the release gradle build
All checks were successful
android-ci / android (pull_request) Successful in 10m27s

Run 414 died in :app:packageRelease with an empty cause chain (no
Caused by: line at all), so a one-off packaging failure leaves nothing
to diagnose. --stacktrace only changes output on failure; it does not
alter the build, the artifact or the timings.

scripts/build-android-local.sh is the single gradle invocation that both
android-ci.yml and android-release.yml build through, so one flag covers
both.
This commit is contained in:
apk-dev 2026-09-18 19:53:41 -04:00
commit fcdabf8d13
No known key found for this signature in database

View file

@ -59,7 +59,11 @@ echo "==> verifying bundled native executables against $BINARY_MANIFEST"
( cd android && sha256sum -c "$(basename "$BINARY_MANIFEST")" ) ( cd android && sha256sum -c "$(basename "$BINARY_MANIFEST")" )
echo "==> android build: version $version (versionCode $ONIONWIRE_VERSION_CODE), abi $abi" echo "==> android build: version $version (versionCode $ONIONWIRE_VERSION_CODE), abi $abi"
( cd android && "./gradlew" --no-daemon \ # --stacktrace only changes output on failure. Without it a Gradle task failure
# can land in the CI log with an empty cause chain (e.g. run 414:
# `:app:packageRelease ... IncrementalSplitterRunnable` and no `Caused by:`),
# which makes a one-off failure undiagnosable after the fact.
( cd android && "./gradlew" --no-daemon --stacktrace \
"-Ponionwire.abis=$abi" \ "-Ponionwire.abis=$abi" \
"-Ponionwire.versionName=$version" \ "-Ponionwire.versionName=$version" \
"-Ponionwire.versionCode=$ONIONWIRE_VERSION_CODE" \ "-Ponionwire.versionCode=$ONIONWIRE_VERSION_CODE" \