Skip to content

Commit 72365b4

Browse files
committed
Cache WinPython Download
1 parent 04e6957 commit 72365b4

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
@@ -409,7 +409,22 @@ jobs:
409409

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

0 commit comments

Comments
 (0)