Skip to content

Commit c1b489d

Browse files
committed
Cache WinPython Download
1 parent 5c93887 commit c1b489d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,22 @@ jobs:
407407

408408
steps:
409409
- uses: actions/checkout@v6
410+
411+
- name: Cache WinPython data
412+
uses: actions/cache@v4
413+
env:
414+
# Increase this value to reset cache
415+
CACHE_NUMBER: 0
416+
with:
417+
path: ${{ env.WP_EXE }}
418+
key:
419+
WinPython-${{ env.WP_DIR_NAME }}-${{ env.CACHE_NUMBER }}
420+
restore-keys: |
421+
WinPython-${{ env.WP_DIR_NAME }}-${{ env.CACHE_NUMBER }}
422+
410423
- name: Download Winpython
424+
# only run if not in cache
425+
if: hashFiles(env.WP_EXE) == ''
411426
shell: powershell
412427
run: |
413428
Invoke-WebRequest -OutFile ${{ env.WP_EXE }} ${{ env.WP_URL }}

0 commit comments

Comments
 (0)