Skip to content

Update cmake-single-platform.yml #81

Update cmake-single-platform.yml

Update cmake-single-platform.yml #81

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: Set up MSVC environment
shell: cmd
run: |
"C:\Program Files\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
- name: Configure CMake
run: |
cmake -S ${{github.workspace}}/Ifnity -B ${{github.workspace}}/out/build/x64-Debug \
-G "Ninja" \
-DCMAKE_BUILD_TYPE=Debug \
-DBUILD_SHARED_IFNITY=False
- name: Build Project
run: cmake --build ${{github.workspace}}/out/build/x64-Debug --config Debug