File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 16
16
jobs :
17
17
build :
18
18
name : Build
19
- # windows-latest目前是windows server 2019
19
+ # windows-latest目前是windows server 2022
20
20
# windows server 2019安装的是vs2019,windows server 2016安装的是vs2017
21
21
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
22
- runs-on : windows-2019
22
+ runs-on : windows-latest
23
23
24
24
# 矩阵配置 https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix
25
25
strategy :
39
39
# 使用表达式语法${{}}访问上下文 https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions
40
40
env :
41
41
target-name : QtScrcpy
42
- vcvarsall-path : ' C:\Program Files (x86)\Microsoft Visual Studio\2019 \Enterprise\VC\Auxiliary\Build\vcvarsall.bat'
43
- vcinstall-path : ' C:\Program Files (x86)\Microsoft Visual Studio\2019 \Enterprise\VC'
42
+ vcvarsall-path : ' C:\Program Files (x86)\Microsoft Visual Studio\2022 \Enterprise\VC\Auxiliary\Build\vcvarsall.bat'
43
+ vcinstall-path : ' C:\Program Files (x86)\Microsoft Visual Studio\2022 \Enterprise\VC'
44
44
qt-install-path : ${{ github.workspace }}/${{ matrix.qt-ver }}
45
45
plantform-des : win
46
46
# 步骤
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ if exist %temp_path% (
86
86
md %temp_path%
87
87
cd %temp_path%
88
88
89
- set cmake_params = -DCMAKE_PREFIX_PATH=%qt_cmake_path% -DCMAKE_BUILD_TYPE=%build_mode% -G " Visual Studio 16 2019 " -A %cmake_vs_build_mode%
89
+ set cmake_params = -DCMAKE_PREFIX_PATH=%qt_cmake_path% -DCMAKE_BUILD_TYPE=%build_mode% -G " Visual Studio 17 2022 " -A %cmake_vs_build_mode%
90
90
echo cmake params: %cmake_params%
91
91
92
92
cmake %cmake_params% ../..
You can’t perform that action at this time.
0 commit comments