-
-
Notifications
You must be signed in to change notification settings - Fork 7
67 lines (65 loc) · 1.86 KB
/
push-pull_request.yml
File metadata and controls
67 lines (65 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Push & Pull Request Continuous Integration
on:
pull_request:
types: [synchronize, opened, edited]
push:
env:
CTEST_OUTPUT_ON_FAILURE: 1
jobs:
ci:
name: "${{matrix.os}} ${{matrix.compiler}} c${{matrix.c_standard}} c++${{matrix.cxx_standard}}"
strategy:
matrix:
os:
- ubuntu
- windows
- macos
image_version:
- latest
- 2025
compiler:
- msvc
- gcc
- clang
c_standard:
- 17
- 23
cxx_standard:
- 20
- 23
- 26
exclude:
- compiler: msvc
os: ubuntu
- compiler: msvc
os: macos
- compiler: gcc
os: windows
# workarounds for shitty hard requirements in MSVC STL
- os: ubuntu
image_version: 2025
- os: macos
image_version: 2025
- os: windows
image_version: latest
runs-on: ${{matrix.os}}-${{matrix.image_version}}
env:
CMAKE_CXX_STANDARD: ${{matrix.cxx_standard}}
CMAKE_C_STANDARD: ${{matrix.c_standard}}
steps:
# important setup
- uses: actions/checkout@main
with:
submodules: recursive
- uses: humbletim/vsdevenv-shell@main
if: ${{matrix.os == 'windows'}}
- uses: seanmiddleditch/gha-setup-ninja@master
if: ${{matrix.os == 'windows'}}
# actual runs
- name: Execute CMake Workflow (Windows and MSVC)
if: ${{(matrix.os == 'windows' && matrix.compiler == 'msvc')}}
shell: vsdevenv x64 powershell {0}
run: cmake --workflow --preset ${{matrix.compiler}}
- name: Execute CMake Workflow (Non-Windows and Non-MSVC)
if: ${{(matrix.os != 'windows' || matrix.compiler != 'msvc')}}
run: cmake --workflow --preset ${{matrix.compiler}}