File tree Expand file tree Collapse file tree 2 files changed +36
-18
lines changed Expand file tree Collapse file tree 2 files changed +36
-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-action
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
+ run : brew install ninja
10
+ shell : bash
11
+
12
+
13
+ - name : install ninja (Linux)
14
+ if : runner.os == 'Linux'
15
+ run : |
16
+ sudo apt update
17
+ sudo apt install --no-install-recommends ninja-build
18
+
19
+ - run : cmake --preset multi
20
+ shell : bash
21
+
22
+ - run : cat build/CMakeFiles/CMakeConfigureLog.yaml
23
+ shell : bash
24
+ if : ${{ failure() }}
25
+
26
+ - run : cmake --build --preset release
27
+ shell : bash
28
+
29
+ - run : cmake --build --preset release --parallel 1
30
+ shell : bash
31
+ if : ${{ failure() }}
32
+
33
+ - run : ctest --preset release
34
+ shell : bash
You can’t perform that action at this time.
0 commit comments