ssp/.github/workflows/msys2-gcc.yml

64 lines
1.6 KiB
YAML
Raw Normal View History

2021-02-21 22:48:08 +01:00
name: msys2-gcc-ci
2021-02-21 19:21:22 +01:00
2021-02-21 19:57:28 +01:00
on:
push:
branches:
- master
- feature/**
- improvement/**
- bugfix/**
pull_request:
branches:
- master
- feature/**
- improvement/**
- bugfix/**
2021-02-21 19:21:22 +01:00
jobs:
windows-mingw:
name: ${{ matrix.msystem }}
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
strategy:
fail-fast: false
matrix:
include:
- msystem: "MINGW64"
2021-02-21 19:27:09 +01:00
install: git mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-gcc
2021-02-21 19:21:22 +01:00
type: Release
- msystem: "MINGW32"
2021-02-21 19:27:09 +01:00
install: git mingw-w64-i686-cmake mingw-w64-i686-ninja mingw-w64-i686-gcc
2021-02-21 19:21:22 +01:00
type: Release
- msystem: "MINGW64"
2021-02-21 19:27:09 +01:00
install: git mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-gcc
2021-02-21 19:21:22 +01:00
type: Debug
- msystem: "MINGW32"
2021-02-21 19:27:09 +01:00
install: git mingw-w64-i686-cmake mingw-w64-i686-ninja mingw-w64-i686-gcc
2021-02-21 19:21:22 +01:00
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 }}
2021-02-21 19:57:28 +01:00
- name: Install dependencies
2021-02-21 19:21:22 +01:00
run: script/ci_install_deps.sh
2021-02-21 19:57:28 +01:00
2021-02-21 19:21:22 +01:00
- name: Configure
2021-02-21 19:57:28 +01:00
run: cmake -S test -B build -D CMAKE_BUILD_TYPE=Debug
2021-02-21 19:21:22 +01:00
- name: Build
2021-02-21 19:57:28 +01:00
run: cmake --build build -j ${{ steps.cores.outputs.count }}
- name: Run
working-directory: build
run: ctest --output-on-failure -j ${{ steps.cores.outputs.count }}