cmake: Allow external control of whether to test or install #215
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2022-2023 LunarG, Inc. | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
name: ci | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
env: | |
CMAKE_GENERATOR: Ninja | |
permissions: | |
contents: read | |
jobs: | |
cmake: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
cmake-version: [ '3.15', 'latest'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: lukka/get-cmake@latest | |
with: | |
cmakeVersion: ${{ matrix.cmake-version }} | |
- uses: ilammy/msvc-dev-cmd@v1 | |
- 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 | |
reuse: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: REUSE Compliance Check | |
uses: fsfe/reuse-action@v3 |