1111
1212 strategy :
1313 matrix :
14- build_type : [Debug, Release]
15- compiler :
16- - {cxx: "g++-11", c: "clang"}
17- - {cxx: "clang++", c: "clang"}
18- cxx_standard : [11, 14, 17, 20, 23]
14+ compiler : [clang++-14, g++-11]
1915
2016 steps :
2117 - uses : actions/checkout@v4
@@ -31,19 +27,23 @@ jobs:
3127 with :
3228 version : 1.11.0
3329
34- - name : Configure CMake
35- run : cmake -B ${{github.workspace}}/build -GNinja
36- -DVULKAN_HPP_SAMPLES_BUILD=ON
37- -DVULKAN_HPP_SAMPLES_BUILD_ONLY_DYNAMIC=ON
38- -DVULKAN_HPP_SAMPLES_BUILD_WITH_LOCAL_VULKAN_HPP=ON
39- -DVULKAN_HPP_TESTS_BUILD=ON
40- -DVULKAN_HPP_TESTS_BUILD_ONLY_DYNAMIC=ON
41- -DVULKAN_HPP_TESTS_BUILD_WITH_LOCAL_VULKAN_HPP=ON
42- -DVULKAN_HPP_RUN_GENERATOR=ON
43- -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
44- -DCMAKE_C_COMPILER=${{matrix.compiler.c}}
45- -DCMAKE_CXX_STANDARD=${{matrix.cxx_standard}}
46- -DCMAKE_BUILD_TYPE=${{matrix.build_type}}
47-
48- - name : Build
49- run : cmake --build ${{github.workspace}}/build --parallel
30+ - name : Loop over cpp_standards (11, 14, ...) and build_types (Debug, Release)
31+ run : |
32+ for cpp_standard in 11 14 17 20 23
33+ do
34+ for build_type in Debug Release
35+ do
36+ cmake -B build/$cpp_standard/$build_type -GNinja \
37+ -DVULKAN_HPP_SAMPLES_BUILD=ON \
38+ -DVULKAN_HPP_SAMPLES_BUILD_ONLY_DYNAMIC=ON \
39+ -DVULKAN_HPP_TESTS_BUILD=ON \
40+ -DVULKAN_HPP_TESTS_BUILD_ONLY_DYNAMIC=ON \
41+ -DVULKAN_HPP_BUILD_WITH_LOCAL_VULKAN_HPP=ON \
42+ -DVULKAN_HPP_PRECOMPILE=OFF \
43+ -DVULKAN_HPP_RUN_GENERATOR=ON \
44+ -DCMAKE_CXX_COMPILER=${{matrix.compiler}} \
45+ -DCMAKE_CXX_STANDARD=$cpp_standard \
46+ -DCMAKE_BUILD_TYPE=$build_type
47+ cmake --build build/$cpp_standard/$build_type --parallel
48+ done
49+ done
0 commit comments