Skip to content

Commit

Permalink
chore: use actions/cache/restore@v4 and actions/cache/save@v4 (#1632)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Jun 9, 2024
1 parent 7bff7c9 commit 9bdc70d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,17 @@ jobs:

- name: Restore cache
if: github.event_name != 'workflow_dispatch' || fromJSON(github.event.inputs.useCache)
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: .buildx-cache-${{ matrix.policy }}_${{ matrix.platform }}/*
key: buildx-cache-${{ matrix.policy }}-${{ matrix.platform }}
restore-keys: buildx-cache-${{ matrix.policy }}-${{ matrix.platform }}

- name: Build
run: ./build.sh

- name: Save cache
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: .buildx-cache-${{ matrix.policy }}_${{ matrix.platform }}/*
key: buildx-cache-${{ matrix.policy }}-${{ matrix.platform }}
Expand Down

0 comments on commit 9bdc70d

Please sign in to comment.