Skip to content

Commit

Permalink
fix cache key, release mode should not overlap with debug (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 authored Oct 11, 2022
1 parent b2c1c1e commit 1de1a25
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ jobs:
path: |
~/.cargo
./target
key: rust-${{ runner.os }}-ci-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('Cargo.lock') }}
key: debug-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('Cargo.lock') }}
restore-keys: |
rust-${{ runner.os }}-ci-${{ hashFiles('rust-toolchain') }}-
rust-${{ runner.os }}-ci-
rust-${{ runner.os }}
debug-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-
debug-${{ runner.os }}-
debug-${{ runner.os }}
- name: Setup Build Environment
run: |
sudo apt update
Expand Down Expand Up @@ -92,4 +92,3 @@ jobs:
run: |
du -sh .
df -h
8 changes: 4 additions & 4 deletions .github/workflows/tsbs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
path: |
~/.cargo
./target
key: rust-${{ runner.os }}-release-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('Cargo.lock') }}
key: release-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('Cargo.lock') }}
restore-keys: |
rust-${{ runner.os }}-release-${{ hashFiles('rust-toolchain') }}-
rust-${{ runner.os }}-release-
rust-${{ runner.os }}
release-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-
release-${{ runner.os }}-
release-${{ runner.os }}
- name: Setup Build Environment
run: |
sudo apt update
Expand Down

0 comments on commit 1de1a25

Please sign in to comment.