Skip to content

Commit

Permalink
ci: update to cache v4
Browse files Browse the repository at this point in the history
  • Loading branch information
cbs228 committed Jan 16, 2025
1 parent c850a25 commit 2390fb2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/rust_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions/cache@v3
- uses: actions/cache@v4
name: Update crate cargo-vendor cache
id: vendor_cache
with:
Expand All @@ -33,7 +33,7 @@ jobs:
cargo-vendor
enableCrossOsArchive: true

- uses: actions/cache@v3
- uses: actions/cache@v4
name: Update cargo registry cache
if: steps.vendor_cache.outputs.cache-hit != 'true'
with:
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions/cache/restore@v3
- uses: actions/cache/restore@v4
name: Restore crate cargo-vendor cache
with:
path: |
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
shell: bash
run: cargo version

- uses: actions/cache/restore@v3
- uses: actions/cache/restore@v4
name: Restore crate cargo-vendor cache
with:
path: |
Expand Down Expand Up @@ -237,7 +237,7 @@ jobs:
- name: Record environment
run: cargo version

- uses: actions/cache/restore@v3
- uses: actions/cache/restore@v4
name: Restore crate cargo-vendor cache
with:
path: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/rust_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions/cache@v3
- uses: actions/cache@v4
name: Update crate cargo-vendor cache
id: vendor_cache
with:
Expand All @@ -67,7 +67,7 @@ jobs:
cargo-vendor
enableCrossOsArchive: true

- uses: actions/cache@v3
- uses: actions/cache@v4
name: Update cargo registry cache
if: steps.vendor_cache.outputs.cache-hit != 'true'
with:
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
shell: bash
run: cargo version

- uses: actions/cache/restore@v3
- uses: actions/cache/restore@v4
name: Restore crate cargo-vendor cache
with:
path: |
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
shell: bash
run: cargo version

- uses: actions/cache/restore@v3
- uses: actions/cache/restore@v4
name: Restore crate cargo-vendor cache
with:
path: |
Expand Down

0 comments on commit 2390fb2

Please sign in to comment.