cmake: Allow external control of whether to test or install
This makes the project more composable: It can be built and tested as part of a larger set of projects, from source.
This commit is contained in:
parent
05fe2cc910
commit
8f034f6b48
2 changed files with 11 additions and 9 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
|
@ -12,7 +12,7 @@ on:
|
|||
|
||||
env:
|
||||
CMAKE_GENERATOR: Ninja
|
||||
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
|
@ -27,9 +27,9 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
- uses: lukka/get-cmake@latest
|
||||
with:
|
||||
cmakeVersion: ${{ matrix.cmake-version }}
|
||||
cmakeVersion: ${{ matrix.cmake-version }}
|
||||
- uses: ilammy/msvc-dev-cmd@v1
|
||||
- run: cmake -S . -B build -D BUILD_TESTS=ON -G Ninja
|
||||
- run: cmake -S . -B build -D VULKAN_HEADERS_ENABLE_TESTS=ON -D VULKAN_HEADERS_ENABLE_INSTALL=ON -G Ninja
|
||||
- run: ctest --output-on-failure
|
||||
working-directory: build
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue