Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5c4eaf5a31 |
@@ -69,17 +69,18 @@ jobs:
|
|||||||
rustup target add x86_64-pc-windows-gnu
|
rustup target add x86_64-pc-windows-gnu
|
||||||
cargo --version && cargo fmt --version && cargo clippy --version
|
cargo --version && cargo fmt --version && cargo clippy --version
|
||||||
|
|
||||||
# Dependency builds are reused until a dep actually changes; a cache miss
|
# Keyed on Cargo.lock: dependency builds are reused until a dep actually
|
||||||
# only makes the run slower, never wrong. rust-cache rather than a plain
|
# changes. A cache miss only makes the run slower, never wrong.
|
||||||
# actions/cache of target/: it strips this crate's own artifacts and
|
- name: Cache cargo registry and build dir
|
||||||
# anything stale before saving, and saves only on a miss. The plain cache
|
uses: actions/cache@v4
|
||||||
# restored the previous target/ and re-saved all of it under every new
|
|
||||||
# Cargo.lock, so each entry carried every older build and the runner's
|
|
||||||
# cache grew without bound.
|
|
||||||
- name: Cache cargo registry and dependency builds
|
|
||||||
uses: Swatinem/rust-cache@v2
|
|
||||||
with:
|
with:
|
||||||
workspaces: sidecar -> target
|
path: |
|
||||||
|
~/.cargo/registry
|
||||||
|
~/.cargo/git
|
||||||
|
sidecar/target
|
||||||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('sidecar/Cargo.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-cargo-
|
||||||
|
|
||||||
# Cheapest gate first — parses only, no compile, so a formatting slip fails
|
# Cheapest gate first — parses only, no compile, so a formatting slip fails
|
||||||
# in seconds instead of after a full build.
|
# in seconds instead of after a full build.
|
||||||
|
|||||||
Reference in New Issue
Block a user