cache improvements in ci

This commit is contained in:
Graham McIntire 2026-02-02 13:44:40 -06:00
parent 667045c34b
commit 5ecada7646
No known key found for this signature in database

View file

@ -32,6 +32,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Mount Cargo target
uses: useblacksmith/stickydisk@v1
with:
key: ${{ github.repository }}-cargo-target
path: ./target
- name: Mount Cargo registry
uses: useblacksmith/stickydisk@v1
with:
key: ${{ github.repository }}-cargo-registry
path: ~/.cargo/registry
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
@ -44,13 +56,6 @@ jobs:
packages: protobuf-compiler lld
version: 1.0
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
shared-key: "rust-cache"
cache-on-failure: true
cache-all-crates: true
- name: Check
run: cargo check --release