Skip to content

Commit d73ed32

Browse files
committed
chore: use actions/cache/restore@v4 and actions/cache/save@v4
1 parent 7bff7c9 commit d73ed32

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,17 @@ jobs:
6060

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

6968
- name: Build
7069
run: ./build.sh
7170

7271
- name: Save cache
7372
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
74-
uses: actions/cache/save@v3
73+
uses: actions/cache/save@v4
7574
with:
7675
path: .buildx-cache-${{ matrix.policy }}_${{ matrix.platform }}/*
7776
key: buildx-cache-${{ matrix.policy }}-${{ matrix.platform }}

0 commit comments

Comments
 (0)