Skip to content

Commit a23ebb0

Browse files
committed
ci: Actually enable incremental building (despite the default in rust-cache)
1 parent a342232 commit a23ebb0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/test_rust.yml

+3
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ jobs:
7878
# See: https://github.com/nextest-rs/nextest/issues/1172
7979
run: cargo nextest run --cargo-profile ci --workspace --locked --no-fail-fast --retries 2 -j 4 --features imgtests,lzma,jpegxr
8080
env:
81+
# This is to counteract the disabling by rust-cache.
82+
# See: https://github.com/Swatinem/rust-cache/issues/43
83+
CARGO_INCREMENTAL: '1'
8184
# Supposedly makes "Updating crates.io index" faster on Windows.
8285
# See: https://github.com/rust-lang/cargo/issues/9167
8386
CARGO_NET_GIT_FETCH_WITH_CLI: 'true'

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,5 @@ inherits = "release"
103103
opt-level = 2
104104
debug-assertions = true
105105
overflow-checks = true
106+
# This is also set with higher authority in `test_rust.yml`.
106107
incremental = true

0 commit comments

Comments
 (0)