summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorJuan Ramos <[email protected]>2023-06-29 11:10:07 -0600
committerJuan Ramos <[email protected]>2023-06-30 09:56:11 -0600
commitad5f8ee9750e99c5397d44c075ae5d8a38271de4 (patch)
treec2d7f5f74dc61235d3546bc23c5224b1393296f1 /.github
parent60b89abf43a687e454f7ff6f6bfe642118e358e8 (diff)
downloadVulkan-Headers-ad5f8ee9750e99c5397d44c075ae5d8a38271de4.tar.gz
Vulkan-Headers-ad5f8ee9750e99c5397d44c075ae5d8a38271de4.zip
cmake: Add VULKAN_HEADERS_INSTALL option
Allows add_subdirectory users to install vulkan-headers
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/linux.yml19
1 files changed, 16 insertions, 3 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
index 0160c3b..a15e439 100644
--- a/.github/workflows/linux.yml
+++ b/.github/workflows/linux.yml
@@ -19,6 +19,9 @@ on:
pull_request:
branches:
- main
+
+env:
+ CMAKE_GENERATOR: Ninja
permissions:
contents: read
@@ -32,7 +35,7 @@ jobs:
with:
cmakeVersion: 3.17.0
- name: Configure Vulkan-Headers
- run: cmake -S . -B build -G "Ninja"
+ run: cmake -S . -B build
- name: Install Vulkan-Headers
run: cmake --install build --prefix ${{ github.workspace }}/build/install
- name: Test Vulkan-Headers find_package support
@@ -46,7 +49,7 @@ jobs:
with:
cmakeVersion: 3.25.0
- name: Configure Vulkan-Headers
- run: cmake -S . -B build -D BUILD_TESTS=ON --log-level=DEBUG -G "Ninja"
+ run: cmake -S . -B build -D BUILD_TESTS=ON --log-level=DEBUG
- name: Build Vulkan-Headers Tests
run: cmake --build build
@@ -58,6 +61,16 @@ jobs:
with:
cmakeVersion: 3.15.0
- name: Configure Vulkan-Headers
- run: cmake -S . -B build/ -G "Ninja" --loglevel=DEBUG
+ run: cmake -S . -B build/ --loglevel=DEBUG
- name: Install Vulkan-Headers
run: cmake --install build/ --prefix build/install
+
+ ubuntu-cmake-add_subdirectory:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - uses: lukka/get-cmake@latest
+ - name: Test add_subdirectory support
+ run: cmake -S tests/add_subdirectory -B tests/add_subdirectory/build
+ - name: Build
+ run: cmake --build tests/add_subdirectory/build