Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 17 additions & 12 deletions .github/workflows/cygwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,6 @@ jobs:
# makes about file modes
- run: icacls . /inheritance:r /T /C

- uses: actions/cache/restore@v4
id: restore-cache
with:
# should use 'pip3 cache dir' to discover this path
path: D:\cygwin\home\runneradmin\.cache\pip
key: cygwin-pip-${{ github.run_number }}
restore-keys: cygwin-pip-

- run: git config --global core.autocrlf input

- uses: actions/checkout@v4
Expand Down Expand Up @@ -85,16 +77,29 @@ jobs:
vala
zlib-devel

- name: Find pip cache dir
id: pip-cache
run: |
export PATH=/usr/bin:/usr/local/bin:$(cygpath ${SYSTEMROOT})/system32
echo "dir=$(cygpath -wa $(python3 -m pip cache dir))" >> "$GITHUB_OUTPUT"
shell: bash --noprofile --norc -o igncr -eo pipefail '{0}'

- uses: actions/cache/restore@v4
id: restore-cache
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: cygwin-pip-${{ github.run_number }}
restore-keys: cygwin-pip-

- name: Run pip
run: |
export PATH=/usr/bin:/usr/local/bin:$(cygpath ${SYSTEMROOT})/system32
python3 -m pip --disable-pip-version-check install gcovr fastjsonschema pefile pytest pytest-subtests pytest-xdist
shell: D:\cygwin\bin\bash.exe --noprofile --norc -o igncr -eo pipefail '{0}'
shell: bash --noprofile --norc -o igncr -eo pipefail '{0}'

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

- name: Run tests
Expand All @@ -105,7 +110,7 @@ jobs:
# Cygwin's static boost installation is broken (some static library
# variants such as boost_thread are not present)
SKIP_STATIC_BOOST: 1
shell: D:\cygwin\bin\bash.exe --noprofile --norc -o igncr -eo pipefail '{0}'
shell: bash --noprofile --norc -o igncr -eo pipefail '{0}'

- uses: actions/upload-artifact@v4
with:
Expand Down
Loading