Skip to content

Commit 28c7e07

Browse files
committed
ci: cache build artifacts
1 parent 25f7412 commit 28c7e07

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,18 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v4
20-
- uses: dtolnay/rust-toolchain@master
20+
- name: toolchain
21+
uses: dtolnay/rust-toolchain@stable
2122
with:
2223
toolchain: nightly
2324
components: rustfmt, clippy
25+
- name: cache
26+
uses: actions/cache@v4
27+
with:
28+
path: |
29+
~/.cargo
30+
target
31+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-rustc-${{ steps.toolchain.outputs.cachekey }}
2432
- name: cargo test
2533
run: cargo test --lib --bins --tests
2634
- name: cargo fmt

0 commit comments

Comments
 (0)