cache improvements in ci
This commit is contained in:
parent
667045c34b
commit
5ecada7646
1 changed files with 12 additions and 7 deletions
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue