try make msys2.yml run unit tests

This commit is contained in:
ado 2021-02-21 19:57:28 +01:00
parent f3e6996818
commit 208914ff96
2 changed files with 24 additions and 8 deletions

View File

@ -1,6 +1,19 @@
name: MSYS2-CI name: MSYS2-CI
on: [push, pull_request] on:
push:
branches:
- master
- feature/**
- improvement/**
- bugfix/**
pull_request:
branches:
- master
- feature/**
- improvement/**
- bugfix/**
jobs: jobs:
windows-mingw: windows-mingw:
@ -35,13 +48,16 @@ jobs:
update: true update: true
msystem: ${{ matrix.msystem }} msystem: ${{ matrix.msystem }}
install: ${{ matrix.install }} install: ${{ matrix.install }}
- name: Fetch doctest
- name: Install dependencies
run: script/ci_install_deps.sh run: script/ci_install_deps.sh
- name: Prepare build dir
run: mkdir build
- name: Configure - name: Configure
run: cd build && cmake -DCMAKE_BUILD_TYPE=${{ matrix.type }} .. run: cmake -S test -B build -D CMAKE_BUILD_TYPE=Debug
- name: Build - name: Build
run: cmake --build build run: cmake --build build -j ${{ steps.cores.outputs.count }}
- name: Run basic tests
run: cd build && ctest --output-on-failure -R basictest - name: Run
working-directory: build
run: ctest --output-on-failure -j ${{ steps.cores.outputs.count }}