Skip to content

Commit

Permalink
Switch cache action
Browse files Browse the repository at this point in the history
  • Loading branch information
MonicaOlejniczak committed Feb 28, 2024
1 parent c1432fc commit d4c0c48
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,20 @@ jobs:
toolchain: stable
target: ${{ matrix.target }}
- uses: bahmutov/[email protected]
- name: Cache Cargo
uses: actions/cache@v4
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.name }}-cargo-${{ hashFiles('**/Cargo.lock') }}
path: |
~/.cargo/bin/
~/.cargo/git/db/
~/.cargo/registry/cache/
~/.cargo/registry/index/
target/
restore-keys: ${{ matrix.name }}-cargo-
shared-key: ${{ matrix.name }}
# - name: Cache Cargo
# uses: actions/cache@v4
# with:
# key: ${{ matrix.name }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# path: |
# ~/.cargo/bin/
# ~/.cargo/git/db/
# ~/.cargo/registry/cache/
# ~/.cargo/registry/index/
# target/
# restore-keys: ${{ matrix.name }}-cargo-
- name: Remove CommandLineTools SDKs
if: ${{ matrix.target == 'aarch64-apple-darwin' }}
run: sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*;
Expand Down

0 comments on commit d4c0c48

Please sign in to comment.