我设法让AppVeyor构建我的项目并将其部署到Windows上,但现在我也想让它构建到Linux上。当我将Ubuntu添加到image部分时,我得到一个错误,它没有被识别,构建失败。在网站的设置中,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我得到的错误是:无法设置构建作业' image : Ubuntu':未找到构建工作进程映像: Ubuntu
发布于 2018-03-31 01:44:34
用于Linux的AppVeyor目前处于私人测试版。请发送电子邮件到team at appveyor dot com (不要忘记提及您的AppVeyor帐户),我们将为您启用它。
更多细节请访问here。
https://stackoverflow.com/questions/49567956
复制相似问题