@@ -21,12 +21,16 @@ concurrency:
2121
2222jobs :
2323 build-and-test :
24- name : x64-linux
25- runs-on : ubuntu-24.04
24+ strategy :
25+ matrix :
26+ os : [{tripple: x64-linux, on: ubuntu-24.04}]
27+
28+ name : ${{matrix.os.tripple}}
29+ runs-on : ${{matrix.os.on}}
2630
2731 env :
28- DEBUG_BUILD_DIR : ${{github.workspace}}/out/build/x64-linux /Debug
29- RELEASE_BUILD_DIR : ${{github.workspace}}/out/build/x64-linux /Release
32+ DEBUG_BUILD_DIR : ${{github.workspace}}/out/build/${{matrix.os.tripple}} /Debug
33+ RELEASE_BUILD_DIR : ${{github.workspace}}/out/build/${{matrix.os.tripple}} /Release
3034 INSTALL_DIR : ${{github.workspace}}/out/install
3135 VCPKG_ROOT : ${{github.workspace}}/vcpkg
3236 VCPKG_DEFAULT_BINARY_CACHE : ${{github.workspace}}/vcpkg/binary-sources
4044 submodules : recursive
4145
4246 - name : Install development environment
47+ if : matrix.os.on == 'ubuntu-24.04'
4348 run : |
4449 wget https://apt.llvm.org/llvm.sh
4550 chmod 755 llvm.sh
6873 key : vcpkg-cache-linux-${{hashFiles('vcpkg.json', 'vcpkg/commit.txt')}}
6974
7075 - name : CMake - Configure
71- run : cmake --preset=x64-linux .
76+ run : cmake --preset=${{matrix.os.tripple}} .
7277
7378 - name : Save vcpkg binary-cache
7479 uses : actions/cache/save@v4
@@ -79,10 +84,10 @@ jobs:
7984 key : ${{steps.restore-vcpkg-cache.outputs.cache-primary-key}}
8085
8186 - name : CMake - Build (Debug)
82- run : cmake --build --preset=x64-linux -dbg --parallel 1 .
87+ run : cmake --build --preset=${{matrix.os.tripple}} -dbg --parallel 1 .
8388
8489 - name : CMake - Build (Release)
85- run : cmake --build --preset=x64-linux -rel --parallel 1 .
90+ run : cmake --build --preset=${{matrix.os.tripple}} -rel --parallel 1 .
8691
8792 - name : Run tests (Debug)
8893 working-directory : ${{env.DEBUG_BUILD_DIR}}
0 commit comments