Skip to content

Commit b92a4ff

Browse files
committed
fixup! CI: Cache packages
1 parent 6599c99 commit b92a4ff

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/build.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ jobs:
3939
- name: Checkout code
4040
uses: actions/checkout@v2
4141

42-
- name: Setup package cache
43-
uses: actions/cache@v4
42+
- name: Load package cache
43+
uses: actions/cache/restore@v4
4444
with:
4545
path: pkg-cache
4646
key: ${{ matrix.os }}-pkg-cache
@@ -124,3 +124,11 @@ jobs:
124124
-v "${{ github.workspace }}:/workspace":ro \
125125
"${{ matrix.os }}" \
126126
/bin/sh -c "${CMD}"
127+
128+
- name: Save package cache
129+
if: always()
130+
uses: actions/cache/save@v4
131+
with:
132+
path: pkg-cache
133+
key: ${{ matrix.os }}-pkg-cache
134+

0 commit comments

Comments
 (0)