diff options
-rw-r--r-- | .github/workflows/ci.yml (renamed from .github/workflows/linux.yml) | 18 | ||||
-rw-r--r-- | tests/CMakeLists.txt | 8 |
2 files changed, 25 insertions, 1 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/ci.yml index 38fc0b7..82bf6af 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: Apache-2.0 -name: Linux +name: ci on: push: @@ -43,6 +43,22 @@ jobs: - name: Build Vulkan-Headers Tests run: cmake --build build + windows-cmake-tests: + runs-on: windows-latest + strategy: + matrix: + arch: [ amd64, amd64_x86 ] + steps: + - uses: actions/checkout@v3 + - uses: lukka/get-cmake@latest + - uses: ilammy/msvc-dev-cmd@v1 + with: + arch: ${{ matrix.arch }} + - name: Configure Vulkan-Headers + run: cmake -S . -B build -D BUILD_TESTS=ON --log-level=DEBUG + - name: Build Vulkan-Headers Tests + run: cmake --build build + test-cmake-minimum: runs-on: ubuntu-latest steps: diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 85afe76..6b3181e 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -25,6 +25,14 @@ if(${CMAKE_C_COMPILER_ID} MATCHES "(GNU|Clang)") ) endif() +if (MSVC) + add_compile_options( + /W4 + /permissive- + /WX + ) +endif() + # vk_icd.h add_executable(vk_icd vk_icd.c) target_link_libraries(vk_icd PRIVATE Vulkan::Headers) |