Skip to content

Commit

Permalink
ci: cache build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
matteopolak committed Jul 13, 2024
1 parent 25f7412 commit 28c7e07
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
- name: toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: rustfmt, clippy
- name: cache
uses: actions/cache@v4
with:
path: |
~/.cargo
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-rustc-${{ steps.toolchain.outputs.cachekey }}
- name: cargo test
run: cargo test --lib --bins --tests
- name: cargo fmt
Expand Down

0 comments on commit 28c7e07

Please sign in to comment.