forked from mesonbuild/meson
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Move Cygwin test run from Azure Pipelines to GitHub workflow
- Loading branch information
1 parent
c1fa7bf
commit d6c76d4
Showing
2 changed files
with
96 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
name: cygwin | ||
|
||
on: | ||
push: | ||
paths: | ||
- "mesonbuild/**" | ||
- "test cases/**" | ||
- ".github/workflows/cygwin.yml" | ||
- "run*tests.py" | ||
pull_request: | ||
paths: | ||
- "mesonbuild/**" | ||
- "test cases/**" | ||
- ".github/workflows/cygwin.yml" | ||
- "run*tests.py" | ||
|
||
jobs: | ||
test: | ||
runs-on: windows-latest | ||
name: ${{ matrix.NAME }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- NAME: gccx64ninja | ||
ARCH: x86_64 | ||
|
||
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 | ||
with: | ||
# should use 'pip3 cache dir' to discover this path | ||
path: C:\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@v2 | ||
|
||
- uses: cygwin/cygwin-install-action@master | ||
with: | ||
platform: ${{ matrix.ARCH }} | ||
packages: | | ||
cmake | ||
gcc-fortran | ||
gcc-objc++ | ||
gcc-objc | ||
git | ||
gobject-introspection | ||
gtk-doc | ||
libarchive13 | ||
libboost-devel | ||
libglib2.0-devel | ||
libgtk3-devel | ||
libjsoncpp19 | ||
librhash0 | ||
libuv1 | ||
libxml2 | ||
libxml2-devel | ||
libxslt | ||
libxslt-devel | ||
ninja | ||
python2-devel | ||
python3-devel | ||
python3-libxml2 | ||
python3-libxslt | ||
python38-pip | ||
python38-wheel | ||
vala | ||
wget | ||
zlib-devel | ||
- name: Run pip | ||
run: | | ||
export PATH=/usr/bin:/usr/local/bin:$(cygpath ${SYSTEMROOT})/system32 | ||
python3 -m pip --disable-pip-version-check install gcovr jsonschema pefile pytest pytest-xdist | ||
shell: C:\cygwin\bin\bash.exe --noprofile --norc -o igncr -eo pipefail '{0}' | ||
|
||
- name: Run tests | ||
run: | | ||
export PATH=/usr/bin:/usr/local/bin:$(cygpath ${SYSTEMROOT})/system32 | ||
python3 run_tests.py --backend=ninja | ||
env: | ||
# Cygwin's static boost installation is broken (some static library | ||
# variants such as boost_thread are not present) | ||
SKIP_STATIC_BOOST: 1 | ||
shell: C:\cygwin\bin\bash.exe --noprofile --norc -o igncr -eo pipefail '{0}' | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ matrix.NAME }} | ||
path: meson-test-run.* | ||
# test log should be saved on failure | ||
if: ${{ !cancelled() }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters