3131 runs-on : windows-2022
3232
3333 env :
34+ BUILD_DIR :
3435 DEBUG_BUILD_DIR : ${{github.workspace}}\out\build\x64-windows\Debug
3536 RELEASE_BUILD_DIR : ${{github.workspace}}\out\build\x64-windows\Release
3637 INSTALL_DIR : ${{github.workspace}}\out\install
5556 - name : Setup Visual Studio Developer Command Prompt
5657 uses : ilammy/msvc-dev-cmd@v1
5758
58- - name : Install CMake and Ninja
59- uses : lukka/get-cmake@latest
60-
61- # - name: Setup vcpkg
62- # uses: lukka/run-vcpkg@v11
63-
6459 - name : Install VCPKG
6560 working-directory : vcpkg
6661 run : .\bootstrap-vcpkg.bat
7368 path : vcpkg\binary-sources\**\*.zip
7469 key : vcpkg-cache-${{hashFiles('vcpkg.json', 'vcpkg\vcpkgLastBuiltCommitId')}}
7570
76- - name : Configure application (Debug, Release
77- uses : lukka/run-cmake@v10
78- env :
79- PATH : ${{env.VCPKG_ROOT}};${{env.PATH}}
80- with :
81- configurePreset : ' x64-windows'
71+ - name : CMake - Configure
72+ run : cmake --preset=x64-windows .
8273
8374 # Always save, so that even a partial builded cache get saved for the next time.
8475 - name : Save vcpkg binary-cache
@@ -89,15 +80,11 @@ jobs:
8980 path : vcpkg\binary-sources\**\*.zip
9081 key : ${{steps.restore-vcpkg-cache.outputs.cache-primary-key}}
9182
92- - name : Build application (Debug)
93- uses : lukka/run-cmake@v10
94- with :
95- buildPreset : ' x64-windows-dbg'
83+ - name : CMake - Build (Debug)
84+ run : cmake --build --preset=x64-windows-dbg --parallel 1 .
9685
97- - name : Build application (Release)
98- uses : lukka/run-cmake@v10
99- with :
100- buildPreset : ' x64-windows-rel'
86+ - name : CMake - Build (Release)
87+ run : cmake --build --preset=x64-windows-rel --parallel 1 .
10188
10289 - name : Run tests (Debug)
10390 working-directory : ${{env.DEBUG_BUILD_DIR}}
0 commit comments