Disable incremental builds for sccache

This commit is contained in:
2026-05-05 20:37:20 -07:00
parent 791d065c4c
commit 8a04fb6158
2 changed files with 3 additions and 0 deletions

View File

@@ -96,6 +96,7 @@ runs:
set -euo pipefail
echo "enabled=true" >> "$GITHUB_OUTPUT"
echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV"
echo "CARGO_INCREMENTAL=0" >> "$GITHUB_ENV"
echo "SCCACHE_IGNORE_SERVER_IO_ERROR=1" >> "$GITHUB_ENV"
echo "SCCACHE_IDLE_TIMEOUT=3600" >> "$GITHUB_ENV"
echo "SCCACHE_LOG=${SCCACHE_LOG:-warn}" >> "$GITHUB_ENV"

View File

@@ -66,6 +66,8 @@ Omit `sccache-bucket` to use the runner-local sccache cache:
- Do not pass secret values as action inputs. Pass standard AWS environment
variables from workflow secrets.
- `CARGO_INCREMENTAL=0` is set because Rust incremental artifacts are not a
good fit for sccache-backed CI builds.
- `SCCACHE_IGNORE_SERVER_IO_ERROR=1` is set so a cache outage falls back to
local compilation instead of failing the build.
- `SCCACHE_IDLE_TIMEOUT=3600` keeps the server alive across long build/test