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

89 lines
2.0 KiB
YAML
Raw Normal View History

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
name: ${{ matrix.msystem }}
2023-08-06 23:49:55 +02:00
runs-on: ${{ matrix.os }}
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-06 23:49:55 +02:00
os: ['windows-2019', 'windows-latest']
2021-02-21 19:21:22 +01:00
include:
- 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
2021-02-21 19:21:22 +01:00
type: Release
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
2021-02-21 19:21:22 +01:00
type: Release
2023-08-06 23:49:55 +02:00
2021-02-21 19:21:22 +01:00
- msystem: "MINGW64"
2023-08-06 23:49:55 +02:00
install: >-
git mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja
2021-02-24 17:35:56 +01:00
mingw-w64-x86_64-clang
2021-02-21 19:21:22 +01:00
type: Debug
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
2021-02-21 19:21:22 +01:00
type: Debug
2023-08-06 23:49:55 +02:00
2021-02-21 19:21:22 +01:00
env:
CMAKE_GENERATOR: Ninja
steps:
- uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
2023-08-06 23:49:55 +02:00
2021-02-21 19:21:22 +01:00
with:
update: true
msystem: ${{ matrix.msystem }}
install: ${{ matrix.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
2021-02-24 18:06:09 +01:00
-DCMAKE_BUILD_TYPE=Debug
2021-02-21 19:57:28 +01:00
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 }}