2021-02-24 17:24:48 +01:00
|
|
|
name: win-msys2-clang-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:
|
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-06 23:49:55 +02:00
|
|
|
|
2021-02-21 19:21:22 +01:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
2023-08-06 23:49:55 +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-06 23:49:55 +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-clang
|
2023-08-06 23:49:55 +02:00
|
|
|
|
2021-02-21 19:21:22 +01:00
|
|
|
- msystem: "MINGW32"
|
2021-02-24 17:35:56 +01:00
|
|
|
install: >-
|
2023-08-06 23:49:55 +02:00
|
|
|
git mingw-w64-i686-cmake mingw-w64-i686-ninja
|
2021-02-24 17:35:56 +01:00
|
|
|
mingw-w64-i686-clang
|
2023-08-06 23:49:55 +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 01:09:37 +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-23 20:39:03 +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-06 23:49:55 +02:00
|
|
|
run: >-
|
|
|
|
cmake -DCMAKE_CXX_COMPILER=clang++ -S test -B build
|
2023-08-07 00:56:44 +02:00
|
|
|
-DCMAKE_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}}
|