Skip to content

Commit

Permalink
ci: add restore-keys
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid committed Dec 22, 2023
1 parent 9409e6d commit 875b8fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
os: [ubuntu-20.04, ubuntu-22.04]
runs-on: ["${{ matrix.os }}"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set rust version
run: |
Expand Down Expand Up @@ -51,6 +51,8 @@ jobs:
~/.cargo/git/db/
target
key: ${{ matrix.os }}-cargo-${{ hashFiles('rust-toolchain.toml') }}-${{ hashFiles('**/Cargo.lock') }}-0001
restore-keys: |
${{ matrix.os }}-cargo
- name: Install dependencies
run: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
os: [ubuntu-20.04, ubuntu-22.04]
runs-on: ["${{ matrix.os }}"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set rust version
run: |
Expand Down Expand Up @@ -50,6 +50,8 @@ jobs:
~/.cargo/git/db/
target
key: ${{ matrix.os }}-cargo-${{ hashFiles('rust-toolchain.toml') }}-${{ hashFiles('**/Cargo.lock') }}-0001
restore-keys: |
${{ matrix.os }}-cargo
- name: Install dependencies
run: |
Expand Down

0 comments on commit 875b8fe

Please sign in to comment.