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

75 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2021-02-24 17:24:48 +01:00
name: win-msys2-gcc-ci
2021-02-21 19:21:22 +01:00
2021-02-21 19:57:28 +01:00
on:
2023-08-07 18:48:21 +02:00
workflow_dispatch:
2021-02-21 19:57:28 +01:00
push:
branches:
- master
- feature/**
- improvement/**
- bugfix/**
pull_request:
branches:
- master
- feature/**
- improvement/**
- bugfix/**
2021-02-21 19:21:22 +01:00
jobs:
windows-mingw:
2021-02-24 18:06:09 +01:00
if: >-
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
! contains(toJSON(github.event.commits.*.message), '[skip github]')
2021-02-21 19:21:22 +01:00
defaults:
run:
shell: msys2 {0}
2023-08-07 00:56:44 +02:00
2021-02-21 19:21:22 +01:00
strategy:
fail-fast: false
2023-08-07 00:56:44 +02:00
2021-02-21 19:21:22 +01:00
matrix:
2023-08-07 00:56:44 +02:00
os: [windows-2019, windows-latest]
type: [Release, Debug]
2023-08-07 16:05:51 +02:00
config:
2021-02-21 19:21:22 +01:00
- msystem: "MINGW64"
2021-02-24 17:35:56 +01:00
install: >-
2023-08-07 00:56:44 +02:00
git mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja
2021-02-24 17:35:56 +01:00
mingw-w64-x86_64-gcc
2023-08-07 00:56:44 +02:00
2021-02-21 19:21:22 +01:00
- msystem: "MINGW32"
2021-02-24 19:09:01 +01:00
install: >-
2023-08-07 00:56:44 +02:00
git mingw-w64-i686-cmake mingw-w64-i686-ninja
2021-02-24 17:35:56 +01:00
mingw-w64-i686-gcc
2023-08-07 00:56:44 +02:00
2023-08-07 01:26:40 +02:00
runs-on: ${{matrix.os}}
2023-08-07 16:05:51 +02:00
name: "${{matrix.config.msystem}}: ${{matrix.os}}: ${{matrix.type}}"
2023-08-07 01:26:40 +02:00
2021-02-21 19:21:22 +01:00
env:
CMAKE_GENERATOR: Ninja
steps:
- uses: actions/checkout@v2
2023-08-07 00:56:44 +02:00
2021-02-21 19:21:22 +01:00
- uses: msys2/setup-msys2@v2
with:
update: true
2023-08-07 16:05:51 +02:00
msystem: ${{matrix.config.msystem}}
install: ${{matrix.config.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
2023-08-07 00:56:44 +02:00
run: cmake -S test -B build -D CMAKE_BUILD_TYPE=${{matrix.type}}
2021-02-21 19:57:28 +01:00
2021-02-21 19:21:22 +01:00
- name: Build
2023-08-07 00:56:44 +02:00
run: cmake --build build -j ${{steps.cores.outputs.count}}
2021-02-21 19:57:28 +01:00
- name: Run
working-directory: build
2023-08-07 00:56:44 +02:00
run: ctest --output-on-failure -j ${{steps.cores.outputs.count}}