Skip to content

Commit 071c49a

Browse files
committed
Add CI cache
1 parent d821105 commit 071c49a

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v6
2020
- uses: dtolnay/rust-toolchain@stable
21+
- name: Cache .cargo and target
22+
uses: actions/cache@v4
23+
with:
24+
path: |
25+
~/.cargo
26+
./target
27+
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
28+
- run: cargo update
2129
- run: cargo test
2230
- run: cargo fmt --all --check
2331
- run: cargo clippy --all-targets --all-features -- -D warnings

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v6
2121
- uses: dtolnay/rust-toolchain@stable
22+
- name: Cache .cargo and target
23+
uses: actions/cache@v4
24+
with:
25+
path: |
26+
~/.cargo
27+
./target
28+
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
29+
- run: cargo update
2230
- uses: rust-lang/crates-io-auth-action@v1
2331
id: auth
2432
- name: Publish crate

0 commit comments

Comments
 (0)