|
8 | 8 | jobs:
|
9 | 9 | ubuntu-build:
|
10 | 10 | name: Build - Ubuntu
|
11 |
| - runs-on: ubuntu-latest |
12 | 11 | strategy:
|
13 | 12 | matrix:
|
14 |
| - compiler: [ {cxx: g++, c: gcc}, {cxx: clang++, c: clang} ] |
| 13 | + config: |
| 14 | + - {os: ubuntu-20.04, compiler: {c: gcc, cxx: g++}} |
| 15 | + - {os: ubuntu-22.04, compiler: {c: gcc, cxx: g++}} |
| 16 | + - {os: ubuntu-22.04, compiler: {c: clang, cxx: clang++}} |
| 17 | + runs-on: ${{matrix.config.os}} |
15 | 18 |
|
16 | 19 | steps:
|
17 | 20 | - uses: actions/checkout@v3
|
|
25 | 28 | run: pip install -r third_party/requirements.txt
|
26 | 29 |
|
27 | 30 | - name: Configure CMake
|
28 |
| - run: cmake -B ${{github.workspace}}/build -D CMAKE_C_COMPILER=${{matrix.compiler.c}} -D CMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} -DUR_ENABLE_TRACING=ON -DUR_DEVELOPER_MODE=ON -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DUR_BUILD_TESTS=ON -DUR_FORMAT_CPP_STYLE=ON |
| 31 | + run: > |
| 32 | + cmake |
| 33 | + -B${{github.workspace}}/build |
| 34 | + -DCMAKE_C_COMPILER=${{matrix.config.compiler.c}} |
| 35 | + -DCMAKE_CXX_COMPILER=${{matrix.config.compiler.cxx}} |
| 36 | + -DUR_ENABLE_TRACING=ON |
| 37 | + -DUR_DEVELOPER_MODE=ON |
| 38 | + -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} |
| 39 | + -DUR_BUILD_TESTS=ON |
| 40 | + -DUR_FORMAT_CPP_STYLE=ON |
29 | 41 |
|
30 | 42 | - name: Generate source from spec, check for uncommitted diff
|
31 | 43 | run: cmake --build ${{github.workspace}}/build --target check-generated
|
|
39 | 51 |
|
40 | 52 | windows-build:
|
41 | 53 | name: Build - Windows
|
42 |
| - runs-on: windows-latest |
| 54 | + strategy: |
| 55 | + matrix: |
| 56 | + config: |
| 57 | + - {os: 'windows-2019'} |
| 58 | + - {os: 'windows-2022'} |
| 59 | + runs-on: ${{matrix.config.os}} |
43 | 60 |
|
44 | 61 | steps:
|
45 | 62 | - uses: actions/checkout@v3
|
|
52 | 69 | run: python3 -m pip install -r third_party/requirements.txt
|
53 | 70 |
|
54 | 71 | - name: Configure CMake
|
55 |
| - run: cmake -DCMAKE_POLICY_DEFAULT_CMP0094=NEW -DUR_ENABLE_TRACING=ON -DUR_DEVELOPER_MODE=ON -DUR_BUILD_TESTS=ON -B ${{github.workspace}}/build -DUR_FORMAT_CPP_STYLE=ON |
| 72 | + run: > |
| 73 | + cmake |
| 74 | + -B${{github.workspace}}/build |
| 75 | + -DCMAKE_POLICY_DEFAULT_CMP0094=NEW |
| 76 | + -DUR_ENABLE_TRACING=ON |
| 77 | + -DUR_DEVELOPER_MODE=ON |
| 78 | + -DUR_BUILD_TESTS=ON |
| 79 | + -DUR_FORMAT_CPP_STYLE=ON |
56 | 80 |
|
57 | 81 | - name: Generate source from spec, check for uncommitted diff
|
58 | 82 | run: cmake --build ${{github.workspace}}/build --target check-generated --config ${{env.BUILD_TYPE}}
|
|
0 commit comments