Skip to content

Commit

Permalink
CI: update cygwin cache actions to new version supporting granular save
Browse files Browse the repository at this point in the history
cache/restore and cache/save now exist, and close the issue linked in
the workflow comment. The new save action runs when invoked, rather than
as a post action.
  • Loading branch information
eli-schwartz committed Apr 19, 2023
1 parent 7bdb4a6 commit 469ed63
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/cygwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ jobs:
MESON_CI_JOBNAME: cygwin-${{ matrix.NAME }}

steps:
# cache should be saved on failure, but the action doesn't support that
# https://github.com/actions/cache/issues/92
- uses: actions/cache@v1
- uses: actions/cache/restore@v3
id: restore-cache
with:
# should use 'pip3 cache dir' to discover this path
path: C:\cygwin\home\runneradmin\.cache\pip
Expand Down Expand Up @@ -86,6 +85,12 @@ jobs:
python3 -m pip --disable-pip-version-check install gcovr jsonschema pefile pytest pytest-subtests pytest-xdist coverage codecov
shell: C:\cygwin\bin\bash.exe --noprofile --norc -o igncr -eo pipefail '{0}'

- uses: actions/cache/save@v3
with:
# should use 'pip3 cache dir' to discover this path
path: C:\cygwin\home\runneradmin\.cache\pip
key: cygwin-pip-${{ github.run_number }}

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

0 comments on commit 469ed63

Please sign in to comment.