File tree Expand file tree Collapse file tree 2 files changed +37
-18
lines changed Expand file tree Collapse file tree 2 files changed +37
-18
lines changed Original file line number Diff line number Diff line change 16
16
- " **.cmake"
17
17
- " **/CMakeLists.txt"
18
18
- " .github/workflows/ci_macos.yml"
19
+ - " .github/workflows/composite-unix/**"
19
20
20
21
jobs :
21
22
36
37
steps :
37
38
- uses : actions/checkout@v4
38
39
39
- - run : brew install ninja
40
-
41
- - run : sudo xcode-select --switch /Applications/Xcode_15.1.app
42
- if : ${{ matrix.c.cc == 'gcc-13' }}
43
- # https://docs.brew.sh/Xcode
44
- # https://github.com/Homebrew/brew/blob/HEAD/Library/Homebrew/os/mac/xcode.rb#L20
45
-
46
- - run : cmake --preset multi
47
-
48
- - run : cat build/CMakeFiles/CMakeConfigureLog.yaml
49
- if : ${{ failure() }}
50
-
51
- - run : cmake --build --preset release
52
-
53
- - run : cmake --build --preset release --parallel 1
54
- if : ${{ failure() }}
55
-
56
- - run : ctest --preset release
40
+ - uses : ./.github/workflows/composite-unix
Original file line number Diff line number Diff line change
1
+ runs :
2
+
3
+ using : " composite"
4
+
5
+ steps :
6
+
7
+ - name : Install Ninja (macOS)
8
+ if : runner.os == 'macOS'
9
+ shell : bash
10
+ run : brew install ninja
11
+
12
+
13
+ - name : install ninja (Linux)
14
+ shell : bash
15
+ if : runner.os == 'Linux'
16
+ run : |
17
+ sudo apt update
18
+ sudo apt install --no-install-recommends ninja-build
19
+
20
+ - run : cmake --preset multi
21
+ shell : bash
22
+
23
+ - run : cat build/CMakeFiles/CMakeConfigureLog.yaml
24
+ shell : bash
25
+ if : ${{ failure() }}
26
+
27
+ - run : cmake --build --preset release
28
+ shell : bash
29
+
30
+ - run : cmake --build --preset release --parallel 1
31
+ shell : bash
32
+ if : ${{ failure() }}
33
+
34
+ - run : ctest --preset release
35
+ shell : bash
You can’t perform that action at this time.
0 commit comments