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 Oct 29, 2024
1 parent e8b031b commit c08fdff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 36 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/apple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,7 @@ jobs:
runs-on: 'macos-13'
steps:
- uses: actions/checkout@v4

- 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
13 changes: 1 addition & 12 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,7 @@ jobs:
sudo apt install -y --no-install-recommends libssl-dev pkg-config
- uses: actions/checkout@v4

- 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
13 changes: 1 addition & 12 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,7 @@ jobs:
runs-on: 'windows-2022'
steps:
- uses: actions/checkout@v4

- 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 c08fdff

Please sign in to comment.