简体   繁体   English

“Visual Studio 16 2019”停止使用 GitHub Actions

[英]"Visual Studio 16 2019" stopped working with GitHub Actions

I have a project using GitHub Actions and I'm still on Visual Studio 16 2019. However my build job just stopped working after months of working just fine.我有一个使用 GitHub Actions 的项目,我仍在使用 Visual Studio 16 2019。但是,我的构建工作在正常工作了几个月后才停止工作。

My job is running on windows-latest like so:我的工作是在windows-latest版本,如下所示:

jobs:
  build-windows:
    runs-on: windows-latest

And then I'm generating the build files with CMake like so:然后我用 CMake 生成构建文件,如下所示:

    - name: Configure CMake
      shell: bash
      working-directory: ${{github.workspace}}/build
      run: cmake $GITHUB_WORKSPACE -G "Visual Studio 16 2019" -A x64 -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_UNIT_TESTS=ON

However, without doing any changes the Windows builds have started failing:然而,在不做任何更改的情况下,Windows 构建开始失败:

Run cmake $GITHUB_WORKSPACE -G "Visual Studio 16 2019" -A x64 -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_UNIT_TESTS=ON
CMake Error at CMakeLists.txt:3 (project):
  Generator
-- Configuring incomplete, errors occurred!

See also "D:/a/ttvg/ttvg/build/CMakeFiles/CMakeOutput.log".
    Visual Studio 16 2019

  could not find any instance of Visual Studio.

A link to the full GitHub Action file is here: https://github.com/zethon/ttvg/blob/master/.github/workflows/windows.yml完整 GitHub 操作文件的链接位于: https://github.com/zethon/ttvg/blob/master/.github/workflows/windows.yml

A link to the last build job can be found here: https://github.com/zethon/ttvg/runs/5352280995?check_suite_focus=true可以在此处找到上次构建作业的链接: https://github.com/zethon/ttvg/runs/5352280995?check_suite_focus=true

Any insight would be highly appreciated!任何见解将不胜感激!

Specifying the windows-2019 instance instead of windows-latest should fix this, until the 2019 image gets deprecated.指定windows-2019实例而不是windows-latest应该可以解决这个问题,直到 2019 图像被弃用。

jobs:
  build-windows:
    runs-on: windows-2019

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM