Skip to content

Commit

Permalink
Use Swatinem/rust-cache instead of actions/cache
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Sep 5, 2024
1 parent 34c54f3 commit 2eb0f35
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 33 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/apple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,7 @@ jobs:
with:
toolchain: stable

- name: Emit rustc version
run: |
rustc --version > .rustc-version
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-pythonbuild-${{ hashFiles('Cargo.lock', '.rustc-version') }}
- uses: Swatinem/rust-cache@v2

- name: Build
run: |
Expand Down
12 changes: 1 addition & 11 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,7 @@ jobs:
with:
toolchain: stable

- name: Emit rustc version
run: |
rustc --version > .rustc-version
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-pythonbuild-${{ hashFiles('Cargo.lock', '.rustc-version') }}
- uses: Swatinem/rust-cache@v2

- name: Build
run: |
Expand Down
12 changes: 1 addition & 11 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,7 @@ jobs:
with:
toolchain: stable

- name: Emit rustc version
run: |
rustc --version > .rustc-version
- uses: actions/cache@v4
with:
path: |
C:/Rust/.cargo/registry
C:/Rust/.cargo/git
target
key: ${{ runner.os }}-pythonbuild-${{ hashFiles('Cargo.lock', '.rustc-version') }}
- uses: Swatinem/rust-cache@v2

- name: Build
run: |
Expand Down

0 comments on commit 2eb0f35

Please sign in to comment.