Skip to content

Commit bdb0722

Browse files
authored
Cache dependency downloads on Linux (#566)
In #565 we note we're seeing rate-limiting on downloads of bzip2 — which is blocking development here. There, we increase the exponential backoff but we need to reduce the number of downloads to address the root cause of the issue. @geofft suggested caching these downloads, which makes a lot of sense for us — there's already logic to validate the file if it exists on disk. I'm just starting with Linux.
1 parent 19bdff5 commit bdb0722

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)