From 208914ff96c8192e3038338387aa5f3c26031d92 Mon Sep 17 00:00:00 2001 From: ado Date: Sun, 21 Feb 2021 19:57:28 +0100 Subject: [PATCH] try make msys2.yml run unit tests --- .github/workflows/msys2.yml | 32 ++++++++++++++----- .../workflows/{ci.yml => ubuntu-latest.yml} | 0 2 files changed, 24 insertions(+), 8 deletions(-) rename .github/workflows/{ci.yml => ubuntu-latest.yml} (100%) diff --git a/.github/workflows/msys2.yml b/.github/workflows/msys2.yml index 644b6ea..8d63563 100644 --- a/.github/workflows/msys2.yml +++ b/.github/workflows/msys2.yml @@ -1,6 +1,19 @@ name: MSYS2-CI -on: [push, pull_request] +on: + push: + branches: + - master + - feature/** + - improvement/** + - bugfix/** + + pull_request: + branches: + - master + - feature/** + - improvement/** + - bugfix/** jobs: windows-mingw: @@ -35,13 +48,16 @@ jobs: update: true msystem: ${{ matrix.msystem }} install: ${{ matrix.install }} - - name: Fetch doctest + + - name: Install dependencies run: script/ci_install_deps.sh - - name: Prepare build dir - run: mkdir build + - name: Configure - run: cd build && cmake -DCMAKE_BUILD_TYPE=${{ matrix.type }} .. + run: cmake -S test -B build -D CMAKE_BUILD_TYPE=Debug + - name: Build - run: cmake --build build - - name: Run basic tests - run: cd build && ctest --output-on-failure -R basictest + run: cmake --build build -j ${{ steps.cores.outputs.count }} + + - name: Run + working-directory: build + run: ctest --output-on-failure -j ${{ steps.cores.outputs.count }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ubuntu-latest.yml similarity index 100% rename from .github/workflows/ci.yml rename to .github/workflows/ubuntu-latest.yml