@@ -21,59 +21,74 @@ jobs:
21
21
type : static
22
22
shell : sh
23
23
benchmark : macos/llvm
24
+ format : true
24
25
- os : macos-latest
25
26
cc : clang
26
27
cxx : clang++
27
28
type : shared
28
29
shell : sh
30
+ format : true
29
31
- os : macos-latest
30
32
cc : gcc-13
31
33
cxx : g++-13
32
34
type : static
33
35
shell : sh
36
+ format : true
34
37
benchmark : macos/gcc
35
38
- os : ubuntu-latest
36
39
cc : clang
37
40
cxx : clang++
38
41
type : static
39
42
shell : sh
43
+ format : true
40
44
benchmark : linux/llvm
41
45
- os : ubuntu-latest
42
46
cc : gcc
43
47
cxx : g++
44
48
type : static
45
49
shell : sh
50
+ format : true
46
51
benchmark : linux/gcc
47
52
- os : ubuntu-latest
48
53
cc : clang
49
54
cxx : clang++
50
55
type : shared
51
56
shell : sh
57
+ format : true
52
58
- os : ubuntu-latest
53
59
cc : gcc
54
60
cxx : g++
55
61
type : shared
56
62
shell : sh
63
+ format : true
57
64
- os : windows-latest
58
65
type : static
59
66
shell : pwsh
67
+ format : true
60
68
benchmark : windows/msvc
61
69
- os : windows-latest
62
70
type : shared
63
71
shell : pwsh
72
+ format : true
73
+ - os : windows-latest
74
+ type : static
75
+ shell : msys2 {0}
76
+ format : false
64
77
65
78
# Sanitizers
66
79
- os : ubuntu-latest
67
80
cc : clang
68
81
cxx : clang++
69
82
type : static
70
83
shell : sh
84
+ format : false
71
85
options : -DSOURCEMETA_CORE_ADDRESS_SANITIZER:BOOL=ON
72
86
- os : ubuntu-latest
73
87
cc : clang
74
88
cxx : clang++
75
89
type : static
76
90
shell : sh
91
+ format : false
77
92
options : -DSOURCEMETA_CORE_UNDEFINED_SANITIZER:BOOL=ON
78
93
79
94
defaults :
@@ -85,8 +100,11 @@ jobs:
85
100
CC : ${{ matrix.platform.cc }}
86
101
CXX : ${{ matrix.platform.cxx }}
87
102
steps :
88
- - name : Install ClangFormat
89
- run : pipx install clang-format==19.1.0
103
+ - name : Install dependencies (MSYS2)
104
+ uses : msys2/setup-msys2@v2
105
+ if : matrix.platform.shell == 'msys2 {0}'
106
+ with :
107
+ install : cmake make gcc
90
108
91
109
- uses : actions/checkout@v4
92
110
- name : Install dependencies (macOS)
@@ -95,6 +113,11 @@ jobs:
95
113
env :
96
114
HOMEBREW_NO_ANALYTICS : 1
97
115
HOMEBREW_NO_AUTO_UPDATE : 1
116
+
117
+ - name : Install ClangFormat
118
+ run : pipx install clang-format==19.1.0 --verbose
119
+ if : matrix.platform.format
120
+
98
121
- run : cmake --version
99
122
- name : Configure (static)
100
123
if : matrix.platform.type == 'static'
@@ -119,6 +142,7 @@ jobs:
119
142
-DCMAKE_COMPILE_WARNING_AS_ERROR:BOOL=ON
120
143
${{ matrix.platform.options }}
121
144
- run : cmake --build ./build --config Release --target clang_format_test
145
+ if : matrix.platform.format
122
146
- run : cmake --build ./build --config Release --parallel 4
123
147
- run : >
124
148
cmake --install ./build --prefix ./build/dist --config Release --verbose
0 commit comments