Skip to content

Commit

Permalink
CI: Cygwin: Cache the downloaded Cygwin packages between runs
Browse files Browse the repository at this point in the history
Unfortunately, for :reasons: cygwin-install-action doesn't currently do
this itself, so do it explcitly.

(As with the pip cache, use the separate explicit save and restore
actions, so that the save always happens, rather than in a post-run step
which only occurs if the tests pass.)
  • Loading branch information
jon-turney committed Aug 23, 2023
1 parent b93572d commit a549aa7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/cygwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ jobs:
MESON_CI_JOBNAME: cygwin-${{ matrix.NAME }}

steps:
- uses: actions/cache/restore@v3
with:
path: C:\cygwin-packages
key: cygwin-packages-${{ github.run_number }}
restore-keys: cygwin-packages-

- uses: actions/cache/restore@v3
id: restore-cache
with:
Expand Down Expand Up @@ -76,6 +82,11 @@ jobs:
vala
zlib-devel
- uses: actions/cache/save@v3
with:
path: C:\cygwin-packages
key: cygwin-packages-${{ github.run_number }}

- name: Run pip
run: |
export PATH=/usr/bin:/usr/local/bin:$(cygpath ${SYSTEMROOT})/system32
Expand Down

0 comments on commit a549aa7

Please sign in to comment.