我们有一个GitHub动作,它使用巧克力来安装install alstudio2017-workload来进行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.我们尝试了固定版本,但这似乎没有帮助。
完全构建失败的这里。
发布于 2021-03-05 19:58:05
解决办法:使用windows-2016映像而不是windows-latest / windows-2019映像。
我还提交了一个相关的bug 报告
https://stackoverflow.com/questions/66486023
复制相似问题