summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJuan Ramos <[email protected]>2023-07-17 12:38:05 -0600
committerJuan Ramos <[email protected]>2023-07-17 12:47:51 -0600
commit6eee20744f23424ef6088167aae1b52dfbcc1385 (patch)
tree3d360e14ffe2fc1ceab8ea4c3aed06bf01651099
parentbc14fdad60c51235e23ee569834a5baecae9231a (diff)
downloadVulkan-Headers-6eee20744f23424ef6088167aae1b52dfbcc1385.tar.gz
Vulkan-Headers-6eee20744f23424ef6088167aae1b52dfbcc1385.zip
ci: Add Windows to CI
-rw-r--r--.github/workflows/ci.yml (renamed from .github/workflows/linux.yml)18
-rw-r--r--tests/CMakeLists.txt8
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)