Skip to content

Commit

Permalink
Update cmake-single-platform.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsmagd authored Nov 24, 2024
1 parent 8a2d0a7 commit 1558ef8
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/cmake-single-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1558ef8

Please sign in to comment.