gpt4 book ai didi

github-actions - Chocolatey 无法在 GitHub Actions 中安装 visualstudio2017-workload-vctools

转载 作者:行者123 更新时间:2023-12-04 08:00:43 28 4
gpt4 key购买 nike

我们有一个 GitHub Action,它使用 Chocolatey 来安装 visualstudio2017-workload-vctools 来进行 Windows 构建。以下是相关 YAML 的样子:

    steps:
- uses: actions/checkout@v1

- name: Set up GraalVM (Java 11)
uses: DeLaGuardo/setup-graalvm@8bbfe44ef9c6f5c07e5af036a1bffd561c037d18
with:
graalvm-version: '20.3.0.java11'

- name: Install native-image
run: gu install native-image
shell: cmd

- name: Set up Visual C Build Tools Workload for Visual Studio 2017 Build Tools
run: |
choco install visualstudio2017-workload-vctools
- name: Configure Pagefile
uses: al-cheb/configure-pagefile-action@v1.2

- name:
run: |
(Get-CimInstance Win32_PageFileUsage).AllocatedBaseSize
前几天, choco install visualstudio2017-workload-vctools开始导致错误,我们一直无法修复它。
visualstudio2017buildtools has been installed.
The install of visualstudio2017buildtools was successful.
Software install location not explicitly set, could be in package or
default install location if installer.

visualstudio2017-workload-vctools v1.3.2 [Approved]
visualstudio2017-workload-vctools package files install completed. Performing other installation steps.
ERROR: Unable to detect any supported Visual Studio product. You may try passing --installPath or both --productId and --channelId parameters.
The install of visualstudio2017-workload-vctools was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\visualstudio2017-workload-vctools\tools\ChocolateyInstall.ps1'.
See log for details.
我们试过 pinning the version ,但这似乎没有帮助。
完全构建失败 here .

最佳答案

解决方法:使用 windows-2016图像而不是 windows-latest/windows-2019图片。
我还提交了一个相关的错误 report

关于github-actions - Chocolatey 无法在 GitHub Actions 中安装 visualstudio2017-workload-vctools,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66486023/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com