2021-06-07 14:19:08 +00:00
|
|
|
|
|
|
|
name: CI Windows
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2023-01-20 17:51:43 +00:00
|
|
|
branches: [ main ]
|
2021-06-07 14:19:08 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ${{matrix.os}}
|
|
|
|
|
2023-12-15 18:50:45 +00:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
|
|
|
|
2021-06-07 14:19:08 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-03-22 10:10:06 +00:00
|
|
|
os: [windows-latest, windows-2019]
|
2022-07-07 08:22:21 +00:00
|
|
|
architecture: [x86, x64]
|
2023-12-15 18:50:45 +00:00
|
|
|
|
2021-06-07 14:19:08 +00:00
|
|
|
steps:
|
2023-09-28 14:39:48 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-01-19 07:11:46 +00:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
2022-07-07 08:22:21 +00:00
|
|
|
|
|
|
|
- name: Setup MSVC
|
2023-02-20 16:48:47 +00:00
|
|
|
uses: TheMrMilchmann/setup-msvc-dev@v2
|
2022-07-07 08:22:21 +00:00
|
|
|
with:
|
|
|
|
arch: ${{matrix.architecture}}
|
2023-12-15 18:50:45 +00:00
|
|
|
|
|
|
|
- name: Loop over cpp_standards (11, 14, ...) and build_types (Debug, Release)
|
|
|
|
run: |
|
|
|
|
for cpp_standard in 11 14 17 20 23
|
|
|
|
do
|
|
|
|
for build_type in Debug Release
|
|
|
|
do
|
|
|
|
cmake -B build/$cpp_standard/$build_type \
|
|
|
|
-DVULKAN_HPP_SAMPLES_BUILD=ON \
|
|
|
|
-DVULKAN_HPP_SAMPLES_BUILD_ONLY_DYNAMIC=ON \
|
|
|
|
-DVULKAN_HPP_TESTS_BUILD=ON \
|
|
|
|
-DVULKAN_HPP_TESTS_BUILD_ONLY_DYNAMIC=ON \
|
|
|
|
-DVULKAN_HPP_BUILD_WITH_LOCAL_VULKAN_HPP=ON \
|
|
|
|
-DVULKAN_HPP_PRECOMPILE=OFF \
|
|
|
|
-DVULKAN_HPP_RUN_GENERATOR=ON \
|
|
|
|
-DCMAKE_CXX_STANDARD=$cpp_standard \
|
|
|
|
-DCMAKE_BUILD_TYPE=$build_type
|
|
|
|
cmake --build build/$cpp_standard/$build_type --parallel
|
|
|
|
done
|
|
|
|
done
|