Skip to content

Commit f3799f0

Browse files
committed
👷‍♀️ Presets-based testing; just copying things over from other repositories
1 parent 48ddb0b commit f3799f0

File tree

6 files changed

+744
-106
lines changed

6 files changed

+744
-106
lines changed

‎.github/workflows/macosx.yml‎

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Push & Pull Request Continuous Integration
2+
on:
3+
pull_request:
4+
types: [synchronize, opened, edited]
5+
push:
6+
7+
env:
8+
CTEST_OUTPUT_ON_FAILURE: 1
9+
10+
jobs:
11+
ci:
12+
name: "${{matrix.os}} ${{matrix.compiler}} c${{matrix.c_standard}} c++${{matrix.cxx_standard}}"
13+
strategy:
14+
matrix:
15+
os:
16+
- ubuntu
17+
- windows
18+
- macos
19+
compiler:
20+
- msvc
21+
- gcc
22+
- clang
23+
c_standard:
24+
- 17
25+
- 23
26+
cxx_standard:
27+
- 20
28+
- 23
29+
- 26
30+
exclude:
31+
- compiler: msvc
32+
os: ubuntu
33+
- compiler: msvc
34+
os: macos
35+
runs-on: ${{matrix.os}}-latest
36+
env:
37+
CMAKE_CXX_STANDARD: ${{matrix.cxx_standard}}
38+
CMAKE_C_STANDARD: ${{matrix.c_standard}}
39+
steps:
40+
# important setup
41+
- uses: actions/checkout@main
42+
with:
43+
submodules: recursive
44+
- uses: humbletim/vsdevenv-shell@main
45+
if: ${{matrix.os == 'windows'}}
46+
- uses: seanmiddleditch/gha-setup-ninja@master
47+
if: ${{matrix.os == 'windows'}}
48+
# actual runs
49+
- name: Execute CMake Workflow (Windows)
50+
if: ${{(matrix.os == 'windows' && matrix.compiler == 'msvc')}}
51+
shell: vsdevenv x64 powershell {0}
52+
run: cmake --workflow --preset ${{matrix.compiler}}
53+
- name: Execute CMake Workflow (Non-Windows)
54+
if: ${{(matrix.os != 'windows' || matrix.compiler != 'msvc')}}
55+
run: cmake --workflow --preset ${{matrix.compiler}}

‎.github/workflows/ubuntu.yml‎

Lines changed: 0 additions & 35 deletions
This file was deleted.

‎.github/workflows/windows.yml‎

Lines changed: 0 additions & 35 deletions
This file was deleted.

‎CMakeLists.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#
1414
# ============================================================================
1515

16-
cmake_minimum_required(VERSION 3.28.0)
16+
cmake_minimum_required(VERSION 3.31.0)
1717

1818
# # Project kickstart
1919
# Includes a bunch of basic flags and utilities shared across projects

0 commit comments

Comments
 (0)