ci: enabled workspace crate caching in Rust cache action

- Enabled workspace crate caching in Rust cache action across three CI jobs for faster builds.
This commit is contained in:
can1357
2026-04-01 07:41:08 +02:00
parent 2185f32363
commit 4b1d5ebb0b
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -63,6 +63,7 @@ jobs:
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with: with:
key: ${{ matrix.target }} key: ${{ matrix.target }}
cache-workspace-crates: true
- uses: oven-sh/setup-bun@v2 - uses: oven-sh/setup-bun@v2
with: with:
bun-version: "1.3" bun-version: "1.3"
@@ -120,6 +121,8 @@ jobs:
with: with:
toolchain: nightly-2026-03-27 toolchain: nightly-2026-03-27
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with:
cache-workspace-crates: true
- uses: mlugg/setup-zig@v2 - uses: mlugg/setup-zig@v2
with: with:
version: 0.15.2 version: 0.15.2
@@ -156,6 +159,8 @@ jobs:
with: with:
toolchain: nightly-2026-03-27 toolchain: nightly-2026-03-27
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with:
cache-workspace-crates: true
- uses: mlugg/setup-zig@v2 - uses: mlugg/setup-zig@v2
with: with:
version: 0.15.2 version: 0.15.2
+1 -1
View File
@@ -1,4 +1,4 @@
[toolchain] [toolchain]
channel = "nightly" channel = "nightly-2026-03-27"
components = ["rustfmt", "clippy", "rust-analyzer"] components = ["rustfmt", "clippy", "rust-analyzer"]
targets = ["x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"] targets = ["x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"]