Skip to content

Commit a13b038

Browse files
updated
1 parent 487733b commit a13b038

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

.github/workflows/actions.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -249,28 +249,24 @@ jobs:
249249
runs-on: windows-latest
250250
steps:
251251
- uses: actions/checkout@main
252-
- name: Setup msbuild
253-
uses: microsoft/[email protected]
254-
with:
255-
vs-version: '[16,17)' # 16.xx
256-
msbuild-architecture: x86
257252
- name: Install Qt
258253
uses: jurplel/install-qt-action@v4
259254
with:
260255
version: 6.8
261256
host: windows
262257
target: desktop
263258
setup-python: false
264-
- name: Install tools
259+
- name: Install VisualStudio tools
265260
run: |
261+
choco install visualstudio2019community -y
262+
choco install visualstudio2019-workload-nativedesktop -y
266263
choco install sqlite -y
267264
choco install cmake -y
268265
- name: Debug build
269266
shell: cmd
270267
run: |
271-
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
268+
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
272269
set CL=/MP
273-
cl 2>&1
274270
qmake -version
275271
call configure.bat --enable-debug
276272
cd src
@@ -287,7 +283,7 @@ jobs:
287283
- name: Release build
288284
shell: cmd
289285
run: |
290-
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
286+
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
291287
set CL=/MP
292288
call configure.bat
293289
cd src
@@ -305,11 +301,6 @@ jobs:
305301
runs-on: windows-latest
306302
steps:
307303
- uses: actions/checkout@main
308-
- name: Setup msbuild
309-
uses: microsoft/setup-msbuild@v1
310-
with:
311-
vs-version: '[16,17)' # 16.xx
312-
msbuild-architecture: x86
313304
- name: Install Qt
314305
uses: jurplel/install-qt-action@v4
315306
with:
@@ -318,14 +309,16 @@ jobs:
318309
target: desktop
319310
arch: win64_msvc2019_64
320311
setup-python: false
321-
- name: Install tools
312+
- name: Install VisualStudio tools
322313
run: |
314+
choco install visualstudio2019community -y
315+
choco install visualstudio2019-workload-nativedesktop -y
323316
choco install sqlite -y
324317
choco install cmake -y
325318
- name: Debug build
326319
shell: cmd
327320
run: |
328-
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
321+
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
329322
set CL=/MP
330323
qmake -version
331324
call configure.bat --enable-debug
@@ -343,7 +336,7 @@ jobs:
343336
- name: Release build
344337
shell: cmd
345338
run: |
346-
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
339+
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
347340
set CL=/MP
348341
call configure.bat
349342
cd src

0 commit comments

Comments
 (0)