From b45814d7956bb3307df458a79cb949d827de1d6c Mon Sep 17 00:00:00 2001 From: zhongyang219 Date: Wed, 22 Jul 2026 22:09:10 +0800 Subject: [PATCH] =?UTF-8?q?ci=E4=B8=AD=E6=81=A2=E5=A4=8D=E5=AE=89=E8=A3=85?= =?UTF-8?q?vs=E7=9A=84=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yaml | 48 +++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0fa363b7..74ba2bf0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -14,20 +14,20 @@ jobs: - name: Check Out uses: actions/checkout@v4 # 所有版本链接:https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-history - #- name: 下载 vs_enterprise.exe - # run: Invoke-WebRequest "https://aka.ms/vs/17/release/vs_enterprise.exe" -OutFile vs_enterprise.exe + - name: 下载 vs_enterprise.exe + run: Invoke-WebRequest "https://aka.ms/vs/17/release/vs_enterprise.exe" -OutFile vs_enterprise.exe # 组件列表:https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-enterprise?view=vs-2022 # 命令行选项:https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=vs-2022 - #- name: 安装需要的组件 - # run: | - # Start-Process -Wait vs_enterprise.exe -ArgumentList "--quiet", "--force", "--norestart", ` - # "--add", "Microsoft.VisualStudio.Component.VC.CoreIde", ` - # "--add", "Microsoft.VisualStudio.Component.IntelliCode", ` - # "--add", "Microsoft.VisualStudio.Component.Windows10SDK", ` - # "--add", "Microsoft.Component.VC.Runtime.UCRTSDK", ` - # "--add", "Microsoft.VisualStudio.Component.VC.ATL", ` - # "--add", "Microsoft.VisualStudio.Component.VC.ATLMFC", ` - # "--add", "Microsoft.VisualStudio.Component.VC.14.29.16.11.MFC" + - name: 安装需要的组件 + run: | + Start-Process -Wait vs_enterprise.exe -ArgumentList "--quiet", "--force", "--norestart", ` + "--add", "Microsoft.VisualStudio.Component.VC.CoreIde", ` + "--add", "Microsoft.VisualStudio.Component.IntelliCode", ` + "--add", "Microsoft.VisualStudio.Component.Windows10SDK", ` + "--add", "Microsoft.Component.VC.Runtime.UCRTSDK", ` + "--add", "Microsoft.VisualStudio.Component.VC.ATL", ` + "--add", "Microsoft.VisualStudio.Component.VC.ATLMFC", ` + "--add", "Microsoft.VisualStudio.Component.VC.14.29.16.11.MFC" - name: 设置 msbuild uses: microsoft/setup-msbuild@v2 - name: 编译 @@ -57,20 +57,20 @@ jobs: - name: Check Out uses: actions/checkout@v4 # 所有版本链接:https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-history - #- name: 下载 vs_enterprise.exe - # run: Invoke-WebRequest "https://aka.ms/vs/17/release/vs_enterprise.exe" -OutFile vs_enterprise.exe + - name: 下载 vs_enterprise.exe + run: Invoke-WebRequest "https://aka.ms/vs/17/release/vs_enterprise.exe" -OutFile vs_enterprise.exe # 组件列表:https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-enterprise?view=vs-2022 # 命令行选项:https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=vs-2022 - #- name: 安装需要的组件 - # run: | - # Start-Process -Wait vs_enterprise.exe -ArgumentList "--quiet", "--force", "--norestart", ` - # "--add", "Microsoft.VisualStudio.Component.VC.CoreIde", ` - # "--add", "Microsoft.VisualStudio.Component.IntelliCode", ` - # "--add", "Microsoft.VisualStudio.Component.Windows10SDK", ` - # "--add", "Microsoft.Component.VC.Runtime.UCRTSDK", ` - # "--add", "Microsoft.VisualStudio.Component.VC.ATL", ` - # "--add", "Microsoft.VisualStudio.Component.VC.ATLMFC", ` - # "--add", "Microsoft.VisualStudio.Component.VC.14.29.16.11.MFC" + - name: 安装需要的组件 + run: | + Start-Process -Wait vs_enterprise.exe -ArgumentList "--quiet", "--force", "--norestart", ` + "--add", "Microsoft.VisualStudio.Component.VC.CoreIde", ` + "--add", "Microsoft.VisualStudio.Component.IntelliCode", ` + "--add", "Microsoft.VisualStudio.Component.Windows10SDK", ` + "--add", "Microsoft.Component.VC.Runtime.UCRTSDK", ` + "--add", "Microsoft.VisualStudio.Component.VC.ATL", ` + "--add", "Microsoft.VisualStudio.Component.VC.ATLMFC", ` + "--add", "Microsoft.VisualStudio.Component.VC.14.29.16.11.MFC" - name: 设置 msbuild uses: microsoft/setup-msbuild@v2 - name: 编译