Skip to content

Commit 03a3112

Browse files
committed
Switch cmake method
1 parent 44e3b01 commit 03a3112

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/build-installer.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,21 @@ jobs:
2222
- name: Install NSIS
2323
run: choco install nsis -y
2424

25-
- name: Configure CMake
26-
run: cmake -S . -B build -G Ninja
25+
- name: Setup anew (or from cache) vcpkg (and does not build any package)
26+
uses: lukka/run-vcpkg@v11
2727

28-
- name: Build
29-
run: cmake --build build --config Release
28+
- name: Run CMake consuming CMakePreset.json and run vcpkg to build packages
29+
uses: lukka/run-cmake@v10
30+
with:
31+
configurePreset: 'ninja-release'
32+
buildPreset: 'ninja-release'
33+
buildPresetAdditionalArgs: "['--config Release']"
34+
35+
#- name: Configure CMake
36+
# run: cmake -S . -B build -G Ninja
37+
38+
#- name: Build
39+
# run: cmake --build build --config Release
3040

3141
- name: Sign executable
3242
uses: ossign/ossign@main

0 commit comments

Comments
 (0)