|
21 | 21 | - 'cmake/**' |
22 | 22 |
|
23 | 23 | jobs: |
24 | | - build-cxx23: |
| 24 | + linux-cxx23: |
25 | 25 | runs-on: |
26 | 26 | group: default |
27 | 27 | strategy: |
|
84 | 84 | cd .build |
85 | 85 | ctest -L cxx23 --output-on-failure |
86 | 86 |
|
87 | | - build-cxx20: |
| 87 | + linux-cxx20: |
88 | 88 | runs-on: |
89 | 89 | group: default |
90 | 90 | strategy: |
@@ -143,3 +143,105 @@ jobs: |
143 | 143 | run: | |
144 | 144 | cd .build |
145 | 145 | ctest -L cxx20 --output-on-failure |
| 146 | +
|
| 147 | + macos-cxx23: |
| 148 | + runs-on: macos-${{ matrix.env.osver }} |
| 149 | + strategy: |
| 150 | + fail-fast: false |
| 151 | + matrix: |
| 152 | + configuration: |
| 153 | + - Debug |
| 154 | + - Release |
| 155 | + env: |
| 156 | + - compiler: clang++ |
| 157 | + osver: 15 |
| 158 | + - compiler: "$(brew --prefix llvm@18)/bin/clang++" |
| 159 | + osver: 15 |
| 160 | + steps: |
| 161 | + - uses: actions/checkout@v4 |
| 162 | + |
| 163 | + - name: Prepare build |
| 164 | + run: | |
| 165 | + mkdir .build |
| 166 | + cd .build |
| 167 | + cmake -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -DCMAKE_CXX_COMPILER=${{ matrix.env.compiler }} .. |
| 168 | + COMPILER=$( grep -E "^CMAKE_CXX_COMPILER:FILEPATH=" CMakeCache.txt | sed -e "s|^[^=]*=||" ) |
| 169 | + FLAGS=$( grep -iE "^CMAKE_CXX_FLAGS:STRING=" CMakeCache.txt | sed -e "s|^[^=]*=||" ) |
| 170 | + printf "C++ compiler: %s\n" "$COMPILER" |
| 171 | + printf "C++ compiler version: %s\n" "$( $COMPILER --version | head -1 )" |
| 172 | + printf "C++ compilation options: %s\n" "$FLAGS" |
| 173 | +
|
| 174 | + - name: Build all |
| 175 | + run: | |
| 176 | + cd .build |
| 177 | + cmake --build . --target cxx23 |
| 178 | +
|
| 179 | + - name: Run tests |
| 180 | + run: | |
| 181 | + cd .build |
| 182 | + ctest -L cxx23 -C ${{ matrix.configuration }} --output-on-failure |
| 183 | +
|
| 184 | + macos-cxx20: |
| 185 | + runs-on: macos-${{ matrix.env.osver }} |
| 186 | + strategy: |
| 187 | + fail-fast: false |
| 188 | + matrix: |
| 189 | + configuration: |
| 190 | + - Debug |
| 191 | + - Release |
| 192 | + env: |
| 193 | + - compiler: clang++ |
| 194 | + osver: 15 |
| 195 | + steps: |
| 196 | + - uses: actions/checkout@v4 |
| 197 | + |
| 198 | + - name: Prepare build |
| 199 | + run: | |
| 200 | + mkdir .build |
| 201 | + cd .build |
| 202 | + cmake -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -DCMAKE_CXX_COMPILER=${{ matrix.env.compiler }} .. |
| 203 | + COMPILER=$( grep -E "^CMAKE_CXX_COMPILER:FILEPATH=" CMakeCache.txt | sed -e "s|^[^=]*=||" ) |
| 204 | + FLAGS=$( grep -iE "^CMAKE_CXX_FLAGS:STRING=" CMakeCache.txt | sed -e "s|^[^=]*=||" ) |
| 205 | + printf "C++ compiler: %s\n" "$COMPILER" |
| 206 | + printf "C++ compiler version: %s\n" "$( $COMPILER --version | head -1 )" |
| 207 | + printf "C++ compilation options: %s\n" "$FLAGS" |
| 208 | +
|
| 209 | + - name: Build all |
| 210 | + run: | |
| 211 | + cd .build |
| 212 | + cmake --build . --target cxx20 |
| 213 | +
|
| 214 | + - name: Run tests |
| 215 | + run: | |
| 216 | + cd .build |
| 217 | + ctest -L cxx20 -C ${{ matrix.configuration }} --output-on-failure |
| 218 | +
|
| 219 | + windows-cxx20: |
| 220 | + runs-on: windows-${{ matrix.env.osver }} |
| 221 | + strategy: |
| 222 | + fail-fast: false |
| 223 | + matrix: |
| 224 | + configuration: |
| 225 | + - Debug |
| 226 | + - Release |
| 227 | + env: |
| 228 | + - vsver: "Visual Studio 17 2022" |
| 229 | + osver: 2025 |
| 230 | + steps: |
| 231 | + - uses: actions/checkout@v4 |
| 232 | + |
| 233 | + - name: Prepare build |
| 234 | + run: | |
| 235 | + mkdir .build |
| 236 | + cd .build |
| 237 | + cmake -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -G "${{ matrix.env.vsver }}" -A x64 .. |
| 238 | +
|
| 239 | + - name: Build all |
| 240 | + run: | |
| 241 | + cd .build |
| 242 | + cmake --build . --target cxx20 |
| 243 | +
|
| 244 | + - name: Run tests |
| 245 | + run: | |
| 246 | + cd .build |
| 247 | + ctest -L cxx20 -C ${{ matrix.configuration }} --output-on-failure |
0 commit comments