|
31 | 31 | strategy: |
32 | 32 | fail-fast: false |
33 | 33 | matrix: |
34 | | - os: ['windows-latest', ubuntu-latest] |
| 34 | + os: ["windows-latest", ubuntu-latest] |
35 | 35 |
|
36 | 36 | runs-on: ${{ matrix.os }} |
37 | 37 | steps: |
@@ -93,125 +93,25 @@ jobs: |
93 | 93 | - if: runner.os == 'Linux' |
94 | 94 | run: sudo apt-get update |
95 | 95 |
|
96 | | - - name: Install clang 11 |
97 | | - uses: ./.github/install-clang-action |
98 | | - with: |
99 | | - version: '11' |
100 | | - |
101 | | - - name: Collect Coverage for clang v11 |
102 | | - env: |
103 | | - CLANG_VERSION: '11' |
104 | | - run: nur test --profile ci |
105 | | - |
106 | | - - name: Install clang 12 |
107 | | - uses: ./.github/install-clang-action |
108 | | - with: |
109 | | - version: '12' |
110 | | - |
111 | | - - name: Collect Coverage for clang v12 |
112 | | - env: |
113 | | - CLANG_VERSION: '12' |
114 | | - run: nur test --profile ci |
115 | | - |
116 | | - - name: Install clang 13 |
117 | | - uses: ./.github/install-clang-action |
118 | | - with: |
119 | | - version: '13' |
120 | | - |
121 | | - - name: Collect Coverage for clang v13 |
122 | | - env: |
123 | | - CLANG_VERSION: '13' |
124 | | - run: nur test --profile ci |
125 | | - |
126 | | - - name: Install clang 14 |
127 | | - uses: ./.github/install-clang-action |
128 | | - with: |
129 | | - version: '14' |
130 | | - |
131 | | - - name: Collect Coverage for clang v14 |
132 | | - env: |
133 | | - CLANG_VERSION: '14' |
134 | | - run: nur test --profile ci |
135 | | - |
136 | | - - name: Install clang 15 |
137 | | - uses: ./.github/install-clang-action |
138 | | - with: |
139 | | - version: '15' |
140 | | - |
141 | | - - name: Collect Coverage for clang v15 |
142 | | - env: |
143 | | - CLANG_VERSION: '15' |
144 | | - run: nur test --profile ci |
145 | | - |
146 | | - - name: Install clang 16 |
147 | | - uses: ./.github/install-clang-action |
148 | | - with: |
149 | | - version: '16' |
150 | | - |
151 | | - - name: Collect Coverage for clang v16 |
152 | | - env: |
153 | | - CLANG_VERSION: '16' |
154 | | - run: nur test --profile ci |
| 96 | + - name: Install nushell |
| 97 | + uses: hustcer/setup-nu@920172d92eb04671776f3ba69d605d3b09351c30 # v3.22 |
155 | 98 |
|
156 | | - - name: Install clang 17 |
157 | | - uses: ./.github/install-clang-action |
158 | | - with: |
159 | | - version: '17' |
160 | | - |
161 | | - - name: Collect Coverage for clang v17 |
162 | | - env: |
163 | | - CLANG_VERSION: '17' |
164 | | - run: nur test --profile ci |
165 | | - |
166 | | - - name: Install clang 18 |
167 | | - uses: ./.github/install-clang-action |
168 | | - with: |
169 | | - version: '18' |
170 | | - |
171 | | - - name: Collect Coverage for clang v18 |
| 99 | + - name: Run test suite |
172 | 100 | env: |
173 | | - CLANG_VERSION: '18' |
174 | | - run: nur test --profile ci |
175 | | - |
176 | | - - name: Install clang v19 |
177 | | - uses: ./.github/install-clang-action |
178 | | - with: |
179 | | - version: '19' |
180 | | - |
181 | | - - name: Collect Coverage for clang v19 |
182 | | - env: |
183 | | - CLANG_VERSION: '19' |
184 | | - run: nur test --profile ci |
185 | | - |
186 | | - - name: Install clang v20 |
187 | | - uses: ./.github/install-clang-action |
188 | | - with: |
189 | | - version: '20' |
190 | | - |
191 | | - - name: Collect Coverage for clang v20 |
192 | | - env: |
193 | | - CLANG_VERSION: '20' |
194 | | - run: nur test --profile ci |
195 | | - |
196 | | - - name: Install clang v21 |
197 | | - uses: ./.github/install-clang-action |
198 | | - with: |
199 | | - version: '21' |
200 | | - |
201 | | - - name: Collect Coverage for clang v21 |
202 | | - env: |
203 | | - CLANG_VERSION: '21' |
204 | | - run: nur test --profile ci |
205 | | - |
206 | | - - name: Install clang v22 |
207 | | - uses: ./.github/install-clang-action |
208 | | - with: |
209 | | - version: '22' |
210 | | - |
211 | | - - name: Collect Coverage for clang v22 |
212 | | - env: |
213 | | - CLANG_VERSION: '22' |
214 | | - run: nur test --profile all |
| 101 | + MIN_CLANG_VERSION: "11" |
| 102 | + MAX_CLANG_VERSION: "22" |
| 103 | + run: |- |
| 104 | + for $version in ($env.MIN_CLANG_VERSION..$env.MAX_CLANG_VERSION) { |
| 105 | + print $"::group::Testing with clang v($version)" |
| 106 | + with-env { CLANG_VERSION = $version } { |
| 107 | + if $version == $env.MAX_CLANG_VERSION { |
| 108 | + nur test --profile all |
| 109 | + } else { |
| 110 | + nur test --profile ci |
| 111 | + } |
| 112 | + } |
| 113 | + print $"::endgroup::" |
| 114 | + } |
215 | 115 |
|
216 | 116 | - name: Generate Coverage HTML report |
217 | 117 | run: nur test llvm-cov |
|
0 commit comments