@@ -197,6 +197,8 @@ jobs:
197197 SCCACHE_REGION : auto
198198 SCCACHE_S3_USE_SSL : " true"
199199 SCCACHE_S3_KEY_PREFIX : ci/android
200+ SCCACHE_LOG : info
201+ SCCACHE_ERROR_LOG : ${{ runner.temp }}/sccache-android.log
200202 AWS_ACCESS_KEY_ID : ${{ secrets.SCCACHE_R2_ACCESS_KEY_ID }}
201203 AWS_SECRET_ACCESS_KEY : ${{ secrets.SCCACHE_R2_SECRET_ACCESS_KEY }}
202204
@@ -255,6 +257,12 @@ jobs:
255257 - name : Setup sccache
256258 uses : mozilla-actions/sccache-action@v0.0.9
257259
260+ - name : Prime sccache
261+ run : |
262+ sccache --stop-server || true
263+ sccache --start-server
264+ sccache --show-stats || true
265+
258266 - name : Download shared prep artifact
259267 uses : actions/download-artifact@v4
260268 with :
@@ -275,7 +283,9 @@ jobs:
275283 touch .build-stamps/sync .build-stamps/bindings-kotlin
276284
277285 - name : Install cargo-ndk
278- run : cargo install cargo-ndk
286+ env :
287+ RUSTC_WRAPPER : sccache
288+ run : cargo install cargo-ndk --locked
279289
280290 - name : Setup Gradle
281291 uses : gradle/actions/setup-gradle@v4
@@ -311,7 +321,10 @@ jobs:
311321 LITTER_PLAY_SERVICE_ACCOUNT_JSON : ${{ runner.temp }}/play-service-account.json
312322 LITTER_PLAY_TRACK : internal
313323 LITTER_VERSION_CODE_OVERRIDE : ${{ env.LITTER_VERSION_CODE_OVERRIDE }}
314- run : make play-release
324+ run : |
325+ set -euo pipefail
326+ trap 'status=$?; echo "==> sccache stats"; sccache --show-stats || true; if [ -f "$SCCACHE_ERROR_LOG" ]; then echo "==> sccache error log"; tail -200 "$SCCACHE_ERROR_LOG" || true; fi; exit $status' EXIT
327+ make play-release
315328
316329 - name : Generate checksums
317330 run : |
@@ -345,6 +358,8 @@ jobs:
345358 SCCACHE_REGION : auto
346359 SCCACHE_S3_USE_SSL : " true"
347360 SCCACHE_S3_KEY_PREFIX : ci/ios
361+ SCCACHE_LOG : info
362+ SCCACHE_ERROR_LOG : ${{ runner.temp }}/sccache-ios.log
348363 AWS_ACCESS_KEY_ID : ${{ secrets.SCCACHE_R2_ACCESS_KEY_ID }}
349364 AWS_SECRET_ACCESS_KEY : ${{ secrets.SCCACHE_R2_SECRET_ACCESS_KEY }}
350365
@@ -399,6 +414,12 @@ jobs:
399414 - name : Setup sccache
400415 uses : mozilla-actions/sccache-action@v0.0.9
401416
417+ - name : Prime sccache
418+ run : |
419+ sccache --stop-server || true
420+ sccache --start-server
421+ sccache --show-stats || true
422+
402423 - name : Download shared prep artifact
403424 uses : actions/download-artifact@v4
404425 with :
@@ -486,4 +507,7 @@ jobs:
486507 MARKETING_VERSION : ${{ env.MARKETING_VERSION }}
487508 BETA_GROUP_NAMES : ${{ env.BETA_GROUP_NAMES }}
488509 WAIT_FOR_PROCESSING : ${{ env.WAIT_FOR_PROCESSING }}
489- run : make testflight
510+ run : |
511+ set -euo pipefail
512+ trap 'status=$?; echo "==> sccache stats"; sccache --show-stats || true; if [ -f "$SCCACHE_ERROR_LOG" ]; then echo "==> sccache error log"; tail -200 "$SCCACHE_ERROR_LOG" || true; fi; exit $status' EXIT
513+ make testflight
0 commit comments