Fix Rust CI cache reuse (#32)
CI / build-and-test (push) Canceled after 42s

Reviewed-on: #32
Co-authored-by: Álex Román Núñez <eirexe@eirteam.moe>
This commit was merged in pull request #32.
This commit is contained in:
2026-09-15 20:21:15 +00:00
committed by EIREXE
parent b8b65e60e9
commit 06d20c2d27
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
# for Linux
[target.x86_64-unknown-linux-gnu]
linker = "clang"
rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold", "-Zshare-generics=y", ]
rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold", "-Zshare-generics=y", "-D", "warnings", ]
[unstable]
codegen-backend = true
+2 -1
View File
@@ -25,6 +25,7 @@ jobs:
- name: Cache Rust dependencies and build artifacts
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
with:
prefix-key: v1-rust
shared-key: linux-nightly
cache-bin: false
@@ -45,7 +46,7 @@ jobs:
pkg-config
- name: Build
run: RUSTFLAGS="-D warnings" cargo build --locked -j 4
run: cargo build --locked -j 4
- name: Run unit tests
run: cargo test --locked --lib -j 4