Skip to content

Commit d45efc5

Browse files
committed
update github actions to use windows runners
1 parent acef06b commit d45efc5

File tree

1 file changed

+45
-6
lines changed

1 file changed

+45
-6
lines changed

.github/workflows/ci.yml

Lines changed: 45 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
- name: Test
3131
run: ctest --test-dir build
3232

33-
build-windows-2015:
34-
runs-on: windows-2016
33+
build-windows-vs2015:
34+
runs-on: windows-2025
3535
strategy:
3636
matrix:
3737
platform: [x86, x64]
@@ -67,8 +67,8 @@ jobs:
6767
- name: Test
6868
run: ctest --test-dir build
6969

70-
build-windows-2017:
71-
runs-on: windows-2019
70+
build-windows-vs2017:
71+
runs-on: windows-2025
7272
strategy:
7373
matrix:
7474
platform: [x86, x64]
@@ -104,8 +104,8 @@ jobs:
104104
- name: Test
105105
run: ctest --test-dir build
106106

107-
build-windows-2019:
108-
runs-on: windows-2019
107+
build-windows-vs2019:
108+
runs-on: windows-2025
109109
strategy:
110110
matrix:
111111
platform: [x86, x64]
@@ -120,12 +120,51 @@ jobs:
120120
uses: ilammy/msvc-dev-cmd@v1
121121
with:
122122
arch: x86
123+
toolset: 14.2
123124

124125
- name: Setup MSVC (x64)
125126
if: matrix.platform == 'x64'
126127
uses: ilammy/msvc-dev-cmd@v1
127128
with:
128129
arch: x64
130+
toolset: 14.2
131+
132+
- name: Install Ninja
133+
run: choco install ninja
134+
135+
- name: Configure CMake
136+
run: cmake -H. -B./build -DJSON_STRUCT_OPT_BUILD_BENCHMARKS=OFF -GNinja
137+
138+
- name: Build
139+
run: ninja -C build
140+
141+
- name: Test
142+
run: ctest --test-dir build
143+
144+
build-windows-vs2022:
145+
runs-on: windows-2025
146+
strategy:
147+
matrix:
148+
platform: [x86, x64]
149+
config: [Debug]
150+
151+
steps:
152+
- name: Checkout repository
153+
uses: actions/checkout@v3
154+
155+
- name: Setup MSVC (x86)
156+
if: matrix.platform == 'x86'
157+
uses: ilammy/msvc-dev-cmd@v1
158+
with:
159+
arch: x86
160+
toolset: 14.3
161+
162+
- name: Setup MSVC (x64)
163+
if: matrix.platform == 'x64'
164+
uses: ilammy/msvc-dev-cmd@v1
165+
with:
166+
arch: x64
167+
toolset: 14.3
129168

130169
- name: Install Ninja
131170
run: choco install ninja

0 commit comments

Comments
 (0)