Skip to content

Commit

Permalink
Enable cache in GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Apr 4, 2024
1 parent 2557bc0 commit 36d2128
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ jobs:
with:
toolchain: ${{ matrix.rust }}
components: rustfmt
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
target/
key: cargo-${{ runner.os }}-${{ matrix.name }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: cargo-${{ runner.os }}-R${{ matrix.rust }}-
- name: Build
run: cargo build ${{ matrix.cargo_args }}
env:
Expand Down Expand Up @@ -48,6 +55,13 @@ jobs:
with:
toolchain: nightly
components: llvm-tools-preview
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
target/
key: cargo-${{ runner.os }}-Coverage-${{ hashFiles('**/Cargo.lock') }}
restore-keys: cargo-${{ runner.os }}-Rnightly-
- name: Test
run: cargo test --features coverage
env:
Expand Down

0 comments on commit 36d2128

Please sign in to comment.