aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2020-07-12 15:25:24 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2020-11-04 18:13:58 +0200
commitf000fa407d8663e3c90c089afdccf9ffbd66341f (patch)
tree08d601f87cea81601860b97d949cd1a2a18939d9 /.github
parent6d816c1800dd7e81238a0b4615b42a2802296f93 (diff)
downloadmeson-f000fa407d8663e3c90c089afdccf9ffbd66341f.zip
meson-f000fa407d8663e3c90c089afdccf9ffbd66341f.tar.gz
meson-f000fa407d8663e3c90c089afdccf9ffbd66341f.tar.bz2
CI: Port MSYS2 from azure-pipelines to github actions
This uses the msys2/setup-msys2@v2 to set up MSYS2
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/msys2.yml86
1 files changed, 86 insertions, 0 deletions
diff --git a/.github/workflows/msys2.yml b/.github/workflows/msys2.yml
new file mode 100644
index 0000000..b4cebe2
--- /dev/null
+++ b/.github/workflows/msys2.yml
@@ -0,0 +1,86 @@
+name: msys2
+
+on:
+ push:
+ pull_request:
+
+jobs:
+ test:
+ runs-on: windows-2019
+ name: ${{ matrix.NAME }}
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - NAME: gccx86ninja
+ MSYSTEM: MINGW32
+ MSYS2_ARCH: i686
+ MSYS2_CURSES: ncurses
+ COMPILER: gcc
+ TOOLCHAIN: toolchain
+ - NAME: gccx64ninja
+ MSYSTEM: MINGW64
+ MSYS2_ARCH: x86_64
+ MSYS2_CURSES: pdcurses
+ COMPILER: gcc
+ TOOLCHAIN: toolchain
+ - NAME: clangx64ninja
+ MSYSTEM: MINGW64
+ MSYS2_ARCH: x86_64
+ MSYS2_CURSES:
+ COMPILER: clang
+ TOOLCHAIN: clang
+
+ defaults:
+ run:
+ shell: msys2 {0}
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: msys2/setup-msys2@v2
+ with:
+ msystem: ${{ matrix.MSYSTEM }}
+ update: true
+ install: >-
+ base-devel
+ git
+ mercurial
+ lcov
+ mingw-w64-${{ matrix.MSYS2_ARCH }}-cmake
+ mingw-w64-${{ matrix.MSYS2_ARCH }}-libxml2
+ mingw-w64-${{ matrix.MSYS2_ARCH }}-ninja
+ mingw-w64-${{ matrix.MSYS2_ARCH }}-pkg-config
+ mingw-w64-${{ matrix.MSYS2_ARCH }}-python2
+ mingw-w64-${{ matrix.MSYS2_ARCH }}-python
+ mingw-w64-${{ matrix.MSYS2_ARCH }}-python-lxml
+ mingw-w64-${{ matrix.MSYS2_ARCH }}-python-setuptools
+ mingw-w64-${{ matrix.MSYS2_ARCH }}-python-pip
+ mingw-w64-${{ matrix.MSYS2_ARCH }}-${{ matrix.TOOLCHAIN }}
+
+ - name: Install dependencies
+ run: |
+ python3 -m pip --disable-pip-version-check install gcovr jsonschema pefile
+
+ - name: Run Tests
+ run: |
+ export BOOST_ROOT=
+ export PATHEXT="$PATHEXT;.py"
+
+ if [[ '${{ matrix.COMPILER }}' == 'clang' ]]; then
+ export CC=clang
+ export CXX=clang++
+ export OBJC=clang
+ export OBJCXX=clang++
+ fi
+
+ if [[ "${{ matrix.MSYS2_CURSES }}" != "" ]]; then
+ pacman --noconfirm --needed -S mingw-w64-${{ matrix.MSYS2_ARCH }}-${{ matrix.MSYS2_CURSES }}
+ fi
+
+ MSYSTEM= python3 run_tests.py --backend=ninja
+
+ - uses: actions/upload-artifact@v2
+ with:
+ name: ${{ matrix.NAME }}
+ path: meson-test-run.* \ No newline at end of file