Skip to content

Commit cf1a8d7

Browse files
committed
Cache dependency downloads
1 parent 1e0a396 commit cf1a8d7

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/linux.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,15 @@ jobs:
216216
path: build
217217
merge-multiple: true
218218

219+
- name: Cache downloads
220+
uses: actions/cache@v4
221+
with:
222+
path: build/downloads
223+
key: ${{ matrix.target_triple }}-${{ hashFiles('pythonbuild/downloads.py')}}
224+
restore-keys: |
225+
${{ matrix.target_triple }}-${{ hashFiles('pythonbuild/downloads.py')}}
226+
${{ matrix.target_triple }}-
227+
219228
- name: Load Docker Images
220229
run: |
221230
for f in build/image-*.tar.zst; do
@@ -307,6 +316,15 @@ jobs:
307316
path: build
308317
merge-multiple: true
309318

319+
- name: Cache downloads
320+
uses: actions/cache@v4
321+
with:
322+
path: build/downloads
323+
key: ${{ matrix.target_triple }}-${{ hashFiles('pythonbuild/downloads.py')}}
324+
restore-keys: |
325+
${{ matrix.target_triple }}-${{ hashFiles('pythonbuild/downloads.py')}}
326+
${{ matrix.target_triple }}-
327+
310328
- name: Load Docker Images
311329
run: |
312330
for f in build/image-*.tar.zst; do

0 commit comments

Comments
 (0)