@@ -129,7 +129,7 @@ jobs:
129
129
130
130
build-cpp-std :
131
131
name : Build Windows C++
132
- runs-on : windows-2019
132
+ runs-on : windows-2022
133
133
strategy :
134
134
matrix :
135
135
std : [11, 14, 17, 20, 23]
@@ -140,7 +140,7 @@ jobs:
140
140
141
141
- name : cmake
142
142
run : >
143
- cmake -G "Visual Studio 16 2019 " -A x64 -DCMAKE_BUILD_TYPE=Release
143
+ cmake -G "Visual Studio 17 2022 " -A x64 -DCMAKE_BUILD_TYPE=Release
144
144
-DFLATBUFFERS_STRICT_MODE=ON
145
145
-DFLATBUFFERS_CPP_STD=${{ matrix.std }}
146
146
-DFLATBUFFERS_BUILD_CPP17=${{ matrix.std >= 17 && 'On' || 'Off'}}
@@ -157,14 +157,14 @@ jobs:
157
157
contents : write
158
158
outputs :
159
159
digests : ${{ steps.hash.outputs.hashes }}
160
- name : Build Windows 2019
161
- runs-on : windows-2019
160
+ name : Build Windows 2022
161
+ runs-on : windows-2022
162
162
steps :
163
163
- uses : actions/checkout@v3
164
164
- name : Add msbuild to PATH
165
165
166
166
- name : cmake
167
- run : cmake -G "Visual Studio 16 2019 " -A x64 -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_BUILD_CPP17=ON -DFLATBUFFERS_STRICT_MODE=ON .
167
+ run : cmake -G "Visual Studio 17 2022 " -A x64 -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_BUILD_CPP17=ON -DFLATBUFFERS_STRICT_MODE=ON .
168
168
- name : build
169
169
run : msbuild.exe FlatBuffers.sln /p:Configuration=Release /p:Platform=x64
170
170
- name : test
@@ -344,13 +344,13 @@ jobs:
344
344
345
345
build-generator-windows :
346
346
name : Check Generated Code on Windows
347
- runs-on : windows-2019
347
+ runs-on : windows-2022
348
348
steps :
349
349
- uses : actions/checkout@v3
350
350
- name : Add msbuild to PATH
351
351
352
352
- name : cmake
353
- run : cmake -G "Visual Studio 16 2019 " -A x64 -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_BUILD_CPP17=ON -DFLATBUFFERS_STRICT_MODE=ON .
353
+ run : cmake -G "Visual Studio 17 2022 " -A x64 -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_BUILD_CPP17=ON -DFLATBUFFERS_STRICT_MODE=ON .
354
354
- name : build
355
355
run : msbuild.exe FlatBuffers.sln /p:Configuration=Release /p:Platform=x64
356
356
- name : Generate
@@ -500,9 +500,9 @@ jobs:
500
500
runs-on : ubuntu-22.04
501
501
steps :
502
502
- uses : actions/checkout@v3
503
- - uses : swift-actions/setup-swift@v2
503
+
504
504
with :
505
- swift-version : ${{ matrix.swift }}
505
+ toolchain : ${{ matrix.swift }}
506
506
- name : Get swift version
507
507
run : swift --version
508
508
- name : test
0 commit comments