diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2023-04-18 23:13:50 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-04-19 00:21:13 -0400 |
| commit | 469ed636feebc61b4fbb472f084290e070727ced (patch) | |
| tree | 60c7273811a042dddc01a14d493ec81084270b48 /.github | |
| parent | 7bdb4a6926db5d89e930a64fe8206b0d575a74f9 (diff) | |
| download | meson-469ed636feebc61b4fbb472f084290e070727ced.tar.gz | |
CI: update cygwin cache actions to new version supporting granular save
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.
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/cygwin.yml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/.github/workflows/cygwin.yml b/.github/workflows/cygwin.yml index 08da3bf04..e021c9e44 100644 --- a/.github/workflows/cygwin.yml +++ b/.github/workflows/cygwin.yml @@ -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 @@ -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 |
