Skip to content

Commit

Permalink
🚀 update cargo cache
Browse files Browse the repository at this point in the history
Signed-off-by: Anathan (Ana) Ye <[email protected]>
  • Loading branch information
anaye1997 committed Aug 4, 2023
1 parent fac9d2b commit 6b3ef14
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 27 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/check_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,12 @@ jobs:
chmod +x $HOME/.local/bin/sccache
echo "$HOME/.local/bin" >> $GITHUB_PATH
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: cache cargo registry
- name: cache cargo
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
key: cargo-registry-${{ hashFiles('**/Cargo.lock') }}
~/.cargo
key: cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
cargo-
- name: cache sccache
Expand Down Expand Up @@ -106,13 +105,12 @@ jobs:
chmod +x $HOME/.local/bin/sccache
echo "$HOME/.local/bin" >> $GITHUB_PATH
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: cache cargo registry
- name: cache cargo
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
key: cargo-registry-${{ hashFiles('**/Cargo.lock') }}
~/.cargo
key: cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
cargo-
- name: cache sccache
Expand Down Expand Up @@ -230,13 +228,12 @@ jobs:
chmod +x $HOME/.local/bin/sccache
echo "$HOME/.local/bin" >> $GITHUB_PATH
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: cache cargo registry
- name: cache cargo
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
key: cargo-registry-${{ hashFiles('**/Cargo.lock') }}
~/.cargo
key: cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
cargo-
- name: cache sccache
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/metadata_diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,14 @@ jobs:
chmod +x $HOME/.local/bin/sccache
echo "$HOME/.local/bin" >> $GITHUB_PATH
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: cache cargo registry
- name: cache cargo
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
key: cargo-registry-${{ hashFiles('**/Cargo.lock') }}
~/.cargo
key: cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
cargo-registry-
cargo-
- name: cache sccache
uses: actions/cache@v2
continue-on-error: false
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/publish_draft_releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,14 @@ jobs:
chmod +x $HOME/.local/bin/sccache
echo "$HOME/.local/bin" >> $GITHUB_PATH
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: cache cargo registry
- name: cache cargo
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
key: cargo-registry-${{ hashFiles('**/Cargo.lock') }}
~/.cargo
key: cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
cargo-registry-
cargo-
- name: cache sccache
uses: actions/cache@v2
continue-on-error: false
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/run_linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,14 @@ jobs:
chmod +x $HOME/.local/bin/sccache
echo "$HOME/.local/bin" >> $GITHUB_PATH
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: cache cargo registry
- name: cache cargo
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
key: cargo-registry-${{ hashFiles('**/Cargo.lock') }}
~/.cargo
key: cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
cargo-registry-
cargo-
- name: cache sccache
uses: actions/cache@v2
continue-on-error: false
Expand Down

0 comments on commit 6b3ef14

Please sign in to comment.