Skip to content

Commit 5fec0af

Browse files
authored
Merge pull request #4 from PapeCoding/feature/github-workflows
Feature/GitHub workflows
2 parents 661c2fa + da1011e commit 5fec0af

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/cmake-multi-platform.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform.
2-
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
31
name: CMake on multiple platforms
42

53
on:
@@ -15,15 +13,9 @@ jobs:
1513
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
1614
fail-fast: false
1715

18-
# Set up a matrix to run the following 3 configurations:
19-
# 1. <Windows, Release, latest MSVC compiler toolchain on the default runner image, default generator>
20-
# 2. <Linux, Release, latest GCC compiler toolchain on the default runner image, default generator>
21-
# 3. <Linux, Release, latest Clang compiler toolchain on the default runner image, default generator>
22-
#
23-
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
2416
matrix:
25-
os: [ubuntu-latest, windows-latest]
26-
build_type: [Release]
17+
os: [ubuntu-latest, windows-latest, macos-latest]
18+
build_type: [Release, Debug]
2719
c_compiler: [gcc, clang, cl]
2820
include:
2921
- os: windows-latest
@@ -35,13 +27,21 @@ jobs:
3527
- os: ubuntu-latest
3628
c_compiler: clang
3729
cpp_compiler: clang++
30+
- os: macos-latest
31+
c_compiler: gcc
32+
cpp_compiler: g++
33+
- os: macos-latest
34+
c_compiler: clang
35+
cpp_compiler: clang++
3836
exclude:
3937
- os: windows-latest
4038
c_compiler: gcc
4139
- os: windows-latest
4240
c_compiler: clang
4341
- os: ubuntu-latest
4442
c_compiler: cl
43+
- os: macos-latest
44+
c_compiler: cl
4545

4646
steps:
4747
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)