Skip to content

Commit

Permalink
Update cache action
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldickison committed Sep 28, 2024
1 parent 263c5d6 commit 4ea85fb
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ jobs:
- uses: actions/checkout@v3.5.2

- name: Cache rust target files
uses: actions/cache@v3.3.1
uses: actions/cache@v4
with:
path: target
key: ${{ runner.os }}-rust-target
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}
save-always: true

- name: Install sass
run: sudo npm install -g sass
Expand All @@ -31,10 +37,16 @@ jobs:
- uses: actions/checkout@v3.5.2

- name: Cache rust target files
uses: actions/cache@v3.3.1
uses: actions/cache@v4
with:
path: target
key: ${{ runner.os }}-rust-target
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}
save-always: true

- name: Install sass
run: sudo npm install -g sass
Expand Down

0 comments on commit 4ea85fb

Please sign in to comment.