Skip to content

Update cmake-single-platform.yml #80

Update cmake-single-platform.yml

Update cmake-single-platform.yml #80

name: C++/C CMake
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Prepare Vulkan SDK
uses: humbletim/[email protected]
with:
vulkan-query-version: 1.3.275.0
vulkan-components: Vulkan-Headers, Vulkan-Loader
vulkan-use-cache: true
- name: Install Ninja
run: choco install ninja -y
- name: Add Ninja to PATH
run: echo "C:\ProgramData\chocolatey\bin" >> $GITHUB_PATH
- name: Configure CMake
shell: cmd
run: |
cmake -S %GITHUB_WORKSPACE%/Ifnity -B %GITHUB_WORKSPACE%/Ifnity/build ^
-G "Ninja" ^
-DCMAKE_C_COMPILER=cl ^
-DCMAKE_CXX_COMPILER=cl ^
-DCMAKE_BUILD_TYPE=%BUILD_TYPE%
- name: Build
shell: cmd
run: cmake --build %GITHUB_WORKSPACE%/Ifnity/build --config %BUILD_TYPE%