Skip to content

Commit b7ac8e5

Browse files
committed
ci: use cmake presets in windows job
1 parent b3addde commit b7ac8e5

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ jobs:
106106
fail-fast: false
107107
matrix:
108108
config:
109-
- Debug
110-
- Release
109+
- rel
110+
- dbg
111111
arch:
112112
- Win32
113113
- x64
@@ -124,17 +124,15 @@ jobs:
124124
with: {name: VCPKG_ROOT, value: "C:/vcpkg/"}
125125
- name: generate cmake build files
126126
run: |
127-
mkdir out
128-
cd out
129-
cmake -A ${{ matrix.arch }} ../build/cmake
127+
cmake build/cmake --preset native -A ${{ matrix.arch }}
130128
- name: build
131129
run: |
132-
cd out
133-
cmake --build . --parallel --config ${{ matrix.config }}
130+
cd build/cmake
131+
cmake --build --preset ${{ matrix.config }}
134132
- name: test
135133
run: |
136-
cd out
137-
cmake --build . --config ${{ matrix.config }} --target test
134+
cd build/cmake
135+
cmake --build --preset ${{ matrix.config }} --target test
138136
##### ios #####
139137
ios:
140138
runs-on: macos-latest

0 commit comments

Comments
 (0)