Skip to content

Commit

Permalink
update actions/cache to its recommended version
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoGiachetta committed Feb 7, 2025
1 parent df12864 commit 2e0f830
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 56 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/fuzzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- name: Cache Inputs
id: cache-inputs
uses: actions/cache@v3
uses: actions/cache@v4.2.0
with:
# Path where the inputs for the fuzzer are stored
path: fuzzer/hfuzz_workspace/fuzz_json/input
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/hyperfine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
ref: ${{ github.event.pull_request[matrix.branch].sha }}

- name: Fetch from cache
uses: actions/cache@v3
uses: actions/cache@v4.2.0
id: cache
with:
path: ${{ matrix.branch }}_programs/*.json
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Populate cache
uses: actions/cache@v3
uses: actions/cache@v4.2.0
id: cache
with:
path: bin/cairo-vm-cli-${{ matrix.branch }}
Expand Down Expand Up @@ -108,25 +108,25 @@ jobs:
tool: [email protected]

- name: Fetch base binary
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4.2.0
with:
path: bin/cairo-vm-cli-base
key: binary-${{ github.event.pull_request.base.sha }}

- name: Fetch HEAD binary
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4.2.0
with:
path: bin/cairo-vm-cli-head
key: binary-${{ github.event.pull_request.head.sha }}

- name: Fetch base programs
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4.2.0
with:
path: base_programs/*.json
key: benchmarks-base-${{ needs.build-programs.outputs.benchmark-hashes-base }}

- name: Fetch head programs
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4.2.0
with:
path: head_programs/*.json
key: benchmarks-head-${{ needs.build-programs.outputs.benchmark-hashes-head }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/iai_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: make iai-benchmark-action

- name: Save cache for ${{ github.sha }}
uses: actions/cache/save@v3
uses: actions/cache/save@v4.2.0
with:
path: |
*/target/iai/iai_benchmark/
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/iai_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
with:
ref: ${{ github.event.pull_request.base.sha }}
- name: Initialize IAI cache for ${{ github.event.pull_request.base.sha }}
uses: actions/cache@v3
uses: actions/cache@v4.2.0
id: cache-iai-results
with:
path: |
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
cargo install --version 0.3.1 iai-callgrind-runner
- name: Restore cache for ${{ github.event.pull_request.base.sha }}
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4.2.0
with:
path: |
*/target/iai/iai_benchmark/
Expand Down
Loading

0 comments on commit 2e0f830

Please sign in to comment.