|
16 | 16 | jobs: |
17 | 17 | build: |
18 | 18 | runs-on: ${{ matrix.os }} |
| 19 | + # Strategy: builds on oldest and newest Ubuntu and on Windows |
| 20 | + # Oldest -> because that's what is used to build backwards compatible packages (see release.yaml) |
| 21 | + # Newest -> so that we can test with latest tools (clang-tidy) and use recent drivers/packages |
19 | 22 | strategy: |
20 | 23 | matrix: |
21 | | - os: [ubuntu-latest, windows-latest] |
| 24 | + os: [ubuntu-18.04, ubuntu-latest, windows-latest] |
22 | 25 |
|
23 | 26 | steps: |
24 | 27 | - uses: actions/checkout@v2 |
|
28 | 31 | - name: Install GL/X11 packages for rendering (Linux only) |
29 | 32 | run: | |
30 | 33 | sudo apt-get install libgles2-mesa-dev libx11-dev |
31 | | - if: ${{ matrix.os == 'ubuntu-latest' }} |
| 34 | + if: ${{ contains(matrix.os, 'ubuntu') }} |
32 | 35 |
|
33 | 36 | - name: Install clang and clang-tidy |
34 | 37 | run: | |
|
47 | 50 | -DCMAKE_BUILD_TYPE=$BUILD_TYPE |
48 | 51 | if: ${{ matrix.os == 'windows-latest' }} |
49 | 52 |
|
50 | | - - name: Configure CMake (Linux) |
| 53 | + - name: Configure CMake (Latest Ubuntu + Clang) |
51 | 54 | shell: bash |
52 | 55 | working-directory: ${{runner.workspace}}/build |
53 | 56 | run: | |
|
57 | 60 | -DCMAKE_BUILD_TYPE=$BUILD_TYPE |
58 | 61 | if: ${{ matrix.os == 'ubuntu-latest' }} |
59 | 62 |
|
| 63 | + - name: Configure CMake (Oldest Ubuntu + GCC) |
| 64 | + shell: bash |
| 65 | + working-directory: ${{runner.workspace}}/build |
| 66 | + run: | |
| 67 | + cmake $GITHUB_WORKSPACE \ |
| 68 | + -DCMAKE_BUILD_TYPE=$BUILD_TYPE |
| 69 | + if: ${{ matrix.os == 'ubuntu-18.04' }} |
| 70 | + |
60 | 71 | - name: Build |
61 | 72 | working-directory: ${{runner.workspace}}/build |
62 | 73 | shell: bash |
|
0 commit comments