You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/cmake-multi-platform.yml
+14-13Lines changed: 14 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,9 @@
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.
# 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.
17
14
fail-fast: false
18
15
19
-
# Set up a matrix to run the following 3 configurations:
20
-
# 1. <Windows, Release, latest MSVC compiler toolchain on the default runner image, default generator>
21
-
# 2. <Linux, Release, latest GCC compiler toolchain on the default runner image, default generator>
22
-
# 3. <Linux, Release, latest Clang compiler toolchain on the default runner image, default generator>
23
-
#
24
-
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
25
16
matrix:
26
-
os: [ubuntu-latest, windows-latest]
27
-
build_type: [Release]
17
+
os: [ubuntu-latest, windows-latest, macos-latest]
18
+
build_type: [Release, Debug]
28
19
c_compiler: [gcc, clang, cl]
29
20
include:
30
21
- os: windows-latest
@@ -36,16 +27,26 @@ jobs:
36
27
- os: ubuntu-latest
37
28
c_compiler: clang
38
29
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++
39
36
exclude:
40
37
- os: windows-latest
41
38
c_compiler: gcc
42
39
- os: windows-latest
43
40
c_compiler: clang
44
41
- os: ubuntu-latest
45
42
c_compiler: cl
43
+
- os: macos-latest
44
+
c_compiler: cl
46
45
47
46
steps:
48
47
- uses: actions/checkout@v4
48
+
with:
49
+
submodules: 'recursive'
49
50
50
51
- name: Set reusable strings
51
52
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
@@ -66,4 +67,4 @@ jobs:
66
67
67
68
- name: Build
68
69
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
0 commit comments