ci: Add Windows to CI
This commit is contained in:
parent
bc14fdad60
commit
6eee20744f
2 changed files with 25 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
name: Linux
|
name: ci
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
@ -43,6 +43,22 @@ jobs:
|
||||||
- name: Build Vulkan-Headers Tests
|
- name: Build Vulkan-Headers Tests
|
||||||
run: cmake --build build
|
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:
|
test-cmake-minimum:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -25,6 +25,14 @@ if(${CMAKE_C_COMPILER_ID} MATCHES "(GNU|Clang)")
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (MSVC)
|
||||||
|
add_compile_options(
|
||||||
|
/W4
|
||||||
|
/permissive-
|
||||||
|
/WX
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
# vk_icd.h
|
# vk_icd.h
|
||||||
add_executable(vk_icd vk_icd.c)
|
add_executable(vk_icd vk_icd.c)
|
||||||
target_link_libraries(vk_icd PRIVATE Vulkan::Headers)
|
target_link_libraries(vk_icd PRIVATE Vulkan::Headers)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue