From 1558ef81833e5f4514dcb9944a0a7eafcdd64eec Mon Sep 17 00:00:00 2001 From: alfonsmagd <105669319+alfonsmagd@users.noreply.github.com> Date: Sun, 24 Nov 2024 20:15:10 +0100 Subject: [PATCH] Update cmake-single-platform.yml --- .github/workflows/cmake-single-platform.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/cmake-single-platform.yml index 74b8f58..8cf7eb4 100644 --- a/.github/workflows/cmake-single-platform.yml +++ b/.github/workflows/cmake-single-platform.yml @@ -33,15 +33,17 @@ jobs: - name: Add Ninja to PATH run: echo "C:\ProgramData\chocolatey\bin" >> $GITHUB_PATH - - name: Configure CMake + - name: Set up MSVC environment 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% + "C:\Program Files\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat" - - name: Build - shell: cmd - run: cmake --build %GITHUB_WORKSPACE%/Ifnity/build --config %BUILD_TYPE% + - 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