首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >AppVeyor - Ubuntu未被识别为镜像

AppVeyor - Ubuntu未被识别为镜像
EN

Stack Overflow用户
提问于 2018-03-30 11:22:52
回答 1查看 196关注 0票数 1

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

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

代码语言:javascript
复制
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

我得到的错误是:无法设置构建作业' image : Ubuntu':未找到构建工作进程映像: Ubuntu

EN

回答 1

Stack Overflow用户

发布于 2018-03-31 01:44:34

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

更多细节请访问here

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49567956

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档