【问题标题】:AppVeyor - Ubuntu not recognised as an imageAppVeyor - Ubuntu 未被识别为图像
【发布时间】:2018-03-30 03:22:51
【问题描述】:

我设法让 AppVeyor 构建我的项目并将其部署到 Windows,但现在我想让它也为 Linux 构建。当我将 Ubuntu 添加到图像部分时,我收到一个错误,它没有被识别并且构建失败。在网站上的设置中,Ubuntu 不是一个选项,唯一的选项是 Visual Studio 的版本。我错过了什么吗?我在在线验证工具中测试了我的 appveyor.yml 文件,它确认它是正确的。

这是我正在使用的 yml 文件:

version: 1.0.{build}
image: 
    - Visual Studio 2017
    - Ubuntu

configuration:
- Release

cache:
- build/lib -> appveyor.yml

before_build:
- cmd: >-
    git submodule update --init --recursive

    if not exist build\ mkdir build

    cd build

    cmake -G "Visual Studio 15 2017 Win64" ../

- sh: git submodule update --init --recursive
- sh: mkdir build
- sh: cd build
- sh: cmake -G "Unix Makefiles"

build:
    project: "build/Games_Engineering.sln"
    parallel: true
    verbosity: minimal

after_build:
- cmd: >-
    7z a game.zip %APPVEYOR_BUILD_FOLDER%/build/bin/%CONFIGURATION%/Coursework.exe %APPVEYOR_BUILD_FOLDER%/build/bin/%CONFIGURATION%/*.dll %APPVEYOR_BUILD_FOLDER%/build/bin/%CONFIGURATION%/res 

artifacts:
  - path: build/*.zip
    name: Game_zip

deploy:
    description: 'Game package'
    provider: GitHub
    on:
        appveyor_repo_tag: true
        CONFIGURATION: Release
    auth_token:
        secure: gaNPfzFDf02yceIPsb+6lUEf/YfexgCZr7tOGgLybABn/2LdEaMLymgfZLgdUivC
    artifact: Game_zip            
    prerelease: true

我得到的错误是:无法设置构建作业“图像:Ubuntu”:找不到构建工作图像:Ubuntu

【问题讨论】:

  • 您能否提供更多详细信息,例如 yml 文件或您看到的构建错误的输出。有关提供 MCVE 的更多详细信息,请参阅 stackoverflow.com/help/mcve
  • “我在在线验证工具中测试了我的 appveyor.yml 文件,它确认它是正确的。” - 不要相信那个工具...
  • 我编辑了第一篇文章以包含更多信息。

标签: linux ubuntu integration continuous appveyor


【解决方案1】:

适用于 Linux 的 AppVeyor 目前处于私人测试阶段。请发送电子邮件至team at appveyor dot com(不要忘记提及您的 AppVeyor 帐户),我们将为您启用。

更多详情请联系here

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-05-29
    • 1970-01-01
    • 1970-01-01
    • 2012-02-28
    • 1970-01-01
    • 2017-11-26
    • 2012-04-17
    相关资源
    最近更新 更多