|
15 | 15 | name: "Build ${{ matrix.platform }} in ${{ matrix.build_type }}" |
16 | 16 | strategy: |
17 | 17 | matrix: |
18 | | - platform: [windows, ubuntu, macos] |
| 18 | + platform: [windows, ubuntu] |
19 | 19 | build_type: [Debug, Release] |
20 | 20 | env: |
21 | 21 | PARALLEL: -j 2 |
|
55 | 55 | cmake -B"build/${{ matrix.platform }}" -DVKB_BUILD_TESTS=ON -DVKB_BUILD_SAMPLES=ON |
56 | 56 | cmake --build "build/${{ matrix.platform }}" --target vulkan_samples --config ${{ matrix.build_type }} ${{ env.PARALLEL }} |
57 | 57 |
|
| 58 | + build_v2: |
| 59 | + name: "Build ${{ matrix.platform }} in ${{ matrix.build_type }}" |
| 60 | + strategy: |
| 61 | + matrix: |
| 62 | + platform: [windows, ubuntu] |
| 63 | + build_type: [Release] |
| 64 | + env: |
| 65 | + PARALLEL: -j 2 |
| 66 | + runs-on: "${{ matrix.platform }}-latest" |
| 67 | + steps: |
| 68 | + - uses: actions/checkout@v4 |
| 69 | + with: |
| 70 | + submodules: "recursive" |
| 71 | + |
| 72 | + - if: ${{ matrix.platform == 'ubuntu' }} |
| 73 | + name: Install RandR headers |
| 74 | + run: | |
| 75 | + sudo apt-get update |
| 76 | + sudo apt install xorg-dev libglu1-mesa-dev |
| 77 | +
|
| 78 | + - name: Configure |
| 79 | + run: cmake -B"build/${{ matrix.platform }}" -DVKB_BUILD_TESTS=ON |
| 80 | + |
| 81 | + - name: "Build Components ${{ matrix.platform }} in ${{ matrix.build_type }}" |
| 82 | + run: cmake --build "build/${{ matrix.platform }}" --target vkb__components --config ${{ matrix.build_type }} ${{ env.PARALLEL }} |
| 83 | + |
| 84 | + - name: "Build Tests ${{ matrix.platform }} in ${{ matrix.build_type }}" |
| 85 | + run: cmake --build "build/${{ matrix.platform }}" --target vkb__tests --config ${{ matrix.build_type }} ${{ env.PARALLEL }} |
| 86 | + |
| 87 | + - name: "Run Tests ${{ matrix.platform }} in ${{ matrix.build_type }}" |
| 88 | + run: ctest -C ${{ matrix.build_type }} --test-dir "build/${{ matrix.platform }}" --output-on-failure |
| 89 | + |
| 90 | + build_macos: |
| 91 | + needs: build |
| 92 | + name: "Build ${{ matrix.platform }} in ${{ matrix.build_type }}" |
| 93 | + strategy: |
| 94 | + # masoc is 10x expensive to run on GitHub machines, so only build simplest variations |
| 95 | + matrix: |
| 96 | + platform: [macos] |
| 97 | + build_type: [Release] |
| 98 | + env: |
| 99 | + PARALLEL: -j 2 |
| 100 | + runs-on: "${{ matrix.platform }}-latest" |
| 101 | + steps: |
| 102 | + - uses: actions/checkout@v4 |
| 103 | + with: |
| 104 | + submodules: "recursive" |
| 105 | + - name: ccache |
| 106 | + uses: hendrikmuhs/[email protected] |
| 107 | + with: |
| 108 | + key: ${{ github.job }}-${{ matrix.os }} |
| 109 | + - name: Configure and build |
| 110 | + run: | |
| 111 | + cmake -B"build/${{ matrix.platform }}" -DVKB_BUILD_TESTS=ON -DVKB_BUILD_SAMPLES=ON |
| 112 | + cmake --build "build/${{ matrix.platform }}" --target vulkan_samples --config ${{ matrix.build_type }} ${{ env.PARALLEL }} |
| 113 | +
|
58 | 114 | build_d2d: |
59 | 115 | name: "Build Ubuntu with Direct To Display" |
60 | 116 | env: |
@@ -108,6 +164,8 @@ jobs: |
108 | 164 | run: NDK_CCACHE=1 NDK_CCACHE_BIN=ccache ./gradlew app:assemble${{ matrix.build_type }} --info |
109 | 165 |
|
110 | 166 | build_ios: |
| 167 | + # iOS is 10x expensive to run on GitHub machines, so only run if we know something else fast/simple passed as well |
| 168 | + needs: build |
111 | 169 | name: "Build ios in ${{ matrix.build_type }}" |
112 | 170 | runs-on: macos-latest |
113 | 171 | strategy: |
|
0 commit comments