Skip to content

Commit 365ac3b

Browse files
perf(ci): enable incremental compilation for self-hosted Rust jobs
Change CARGO_INCREMENTAL from 0 to 1 for build and rust-tests jobs. Self-hosted runners have persistent target/ directories, so incremental compilation can reuse artifacts from previous runs for faster builds. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 86d5323 commit 365ac3b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ jobs:
184184
runs-on: self-hosted
185185
timeout-minutes: 5
186186
env:
187-
CARGO_INCREMENTAL: 0 # Disable incremental compilation in CI (faster clean builds)
187+
CARGO_INCREMENTAL: 1 # Enable incremental compilation on self-hosted (reuses artifacts)
188188
CARGO_TERM_COLOR: always
189189

190190
steps:
@@ -218,7 +218,7 @@ jobs:
218218
needs: build
219219
timeout-minutes: 5
220220
env:
221-
CARGO_INCREMENTAL: 0 # Disable incremental compilation in CI (faster clean builds)
221+
CARGO_INCREMENTAL: 1 # Enable incremental compilation on self-hosted (reuses artifacts)
222222
CARGO_TERM_COLOR: always
223223

224224
steps:

0 commit comments

Comments
 (0)