From a23ebb0366f7be09e2884cab2f055c7198f21adf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=96R=C3=96K=20Attila?= Date: Tue, 27 Feb 2024 14:13:20 +0100 Subject: [PATCH] ci: Actually enable incremental building (despite the default in rust-cache) --- .github/workflows/test_rust.yml | 3 +++ Cargo.toml | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/test_rust.yml b/.github/workflows/test_rust.yml index fc7c556ce..611cf8495 100644 --- a/.github/workflows/test_rust.yml +++ b/.github/workflows/test_rust.yml @@ -78,6 +78,9 @@ jobs: # See: https://github.com/nextest-rs/nextest/issues/1172 run: cargo nextest run --cargo-profile ci --workspace --locked --no-fail-fast --retries 2 -j 4 --features imgtests,lzma,jpegxr env: + # This is to counteract the disabling by rust-cache. + # See: https://github.com/Swatinem/rust-cache/issues/43 + CARGO_INCREMENTAL: '1' # Supposedly makes "Updating crates.io index" faster on Windows. # See: https://github.com/rust-lang/cargo/issues/9167 CARGO_NET_GIT_FETCH_WITH_CLI: 'true' diff --git a/Cargo.toml b/Cargo.toml index 484503e44..bd0382296 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -103,4 +103,5 @@ inherits = "release" opt-level = 2 debug-assertions = true overflow-checks = true +# This is also set with higher authority in `test_rust.yml`. incremental = true