From 605f62e0ef2962890efa463cc9e7f54fac1f93fe Mon Sep 17 00:00:00 2001 From: ado Date: Sun, 21 Feb 2021 19:21:22 +0100 Subject: [PATCH] add msys2.yml --- .github/workflows/msys2.yml | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/msys2.yml diff --git a/.github/workflows/msys2.yml b/.github/workflows/msys2.yml new file mode 100644 index 0000000..5ddf2b1 --- /dev/null +++ b/.github/workflows/msys2.yml @@ -0,0 +1,47 @@ +name: MSYS2-CI + +on: [push, pull_request] + +jobs: + windows-mingw: + name: ${{ matrix.msystem }} + runs-on: windows-latest + defaults: + run: + shell: msys2 {0} + strategy: + fail-fast: false + matrix: + include: + - msystem: "MINGW64" + install: mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-gcc + type: Release + - msystem: "MINGW32" + install: mingw-w64-i686-cmake mingw-w64-i686-ninja mingw-w64-i686-gcc + type: Release + - msystem: "MINGW64" + install: mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-gcc + type: Debug + - msystem: "MINGW32" + install: mingw-w64-i686-cmake mingw-w64-i686-ninja mingw-w64-i686-gcc + type: Debug + env: + CMAKE_GENERATOR: Ninja + + steps: + - uses: actions/checkout@v2 + - uses: msys2/setup-msys2@v2 + with: + update: true + msystem: ${{ matrix.msystem }} + install: ${{ matrix.install }} + - name: Fetch doctest + run: script/ci_install_deps.sh + - name: Prepare build dir + run: mkdir build + - name: Configure + run: cd build && cmake -DCMAKE_BUILD_TYPE=${{ matrix.type }} .. + - name: Build + run: cmake --build build + - name: Run basic tests + run: cd build && ctest --output-on-failure -R basictest