加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.appveyor.yml 2.44 KB
一键复制 编辑 原始数据 按行查看 历史
clone_folder: c:\projects\gn-build\build
shallow_clone: true
environment:
GN_WIN_URL: https://github.com/timniederhausen/gn/releases/download/2020.03/gn-win-amd64.zip
matrix:
- GN_ARGS: "visual_studio_version=\\\"2013\\\""
- GN_ARGS: "visual_studio_version=\\\"2013\\\" is_debug=false"
- GN_ARGS: "visual_studio_version=\\\"2013\\\" is_official_build=true"
- GN_ARGS: "visual_studio_version=\\\"2013\\\" clang_base_path=\\\"C:\\Program Files\\LLVM\\\" is_clang=true"
- GN_ARGS: "visual_studio_version=\\\"2013\\\" clang_base_path=\\\"C:\\Program Files\\LLVM\\\" is_clang=true is_debug=false"
- GN_ARGS: "visual_studio_version=\\\"2013\\\" clang_base_path=\\\"C:\\Program Files\\LLVM\\\" is_clang=true is_official_build=true"
- GN_ARGS: "visual_studio_version=\\\"2015\\\""
- GN_ARGS: "visual_studio_version=\\\"2015\\\" is_debug=false"
- GN_ARGS: "visual_studio_version=\\\"2015\\\" is_official_build=true"
- GN_ARGS: "visual_studio_version=\\\"2015\\\" clang_base_path=\\\"C:\\Program Files\\LLVM\\\" is_clang=true"
- GN_ARGS: "visual_studio_version=\\\"2015\\\" clang_base_path=\\\"C:\\Program Files\\LLVM\\\" is_clang=true is_debug=false"
- GN_ARGS: "visual_studio_version=\\\"2015\\\" clang_base_path=\\\"C:\\Program Files\\LLVM\\\" is_clang=true is_official_build=true"
- GN_ARGS: "visual_studio_version=\\\"2017\\\""
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- GN_ARGS: "visual_studio_version=\\\"2019\\\""
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
matrix:
fast_finish: true
install:
# All external dependencies are installed in C:\projects\deps
- mkdir C:\projects\deps
- set PATH=C:\projects\deps;%PATH%
# Install the current GN version
- appveyor DownloadFile %GN_WIN_URL% -FileName C:\projects\deps\gn.zip
- 7z x C:\projects\deps\gn.zip -oC:\projects\deps > nul
- gn --version
# Install Ninja
- set NINJA_URL="https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-win.zip"
- appveyor DownloadFile %NINJA_URL% -FileName C:\projects\deps\ninja.zip
- 7z x C:\projects\deps\ninja.zip -oC:\projects\deps > nul
- ninja --version
before_build:
- cd c:\projects\gn-build
- git init
- git remote add origin https://github.com/timniederhausen/gn-build.git
- git fetch
- git checkout -t origin/testsrc
build_script:
- gn gen out --args="%GN_ARGS%"
- type out\args.gn
- ninja -C out
test_script:
- py -3 build\gn_helpers_unittest.py
- out\hello
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化