2016-12-21 20:44:30 +00:00
|
|
|
############################################################################
|
|
|
|
# URDE appveyor build configuration
|
|
|
|
############################################################################
|
|
|
|
clone_depth: 1
|
|
|
|
|
2020-02-21 22:01:08 +00:00
|
|
|
platform:
|
|
|
|
- x64
|
|
|
|
|
2020-05-27 15:02:35 +00:00
|
|
|
build_cloud: AXIODL-BUILDBOT
|
2020-02-21 22:01:08 +00:00
|
|
|
image: Windows
|
2016-12-21 20:44:30 +00:00
|
|
|
|
|
|
|
build:
|
|
|
|
verbosity: detailed
|
|
|
|
|
|
|
|
configuration:
|
2020-02-21 22:01:08 +00:00
|
|
|
- Release
|
|
|
|
|
|
|
|
cache:
|
|
|
|
- C:\projects\deps
|
2016-12-21 20:44:30 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
############################################################################
|
|
|
|
# All external dependencies are installed in C:\projects\deps
|
|
|
|
############################################################################
|
2020-02-21 22:01:08 +00:00
|
|
|
- if not exist C:\projects\deps mkdir C:\projects\deps
|
2016-12-21 20:44:30 +00:00
|
|
|
- cd C:\projects\deps
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
# Install Ninja
|
|
|
|
############################################################################
|
2020-02-21 22:01:08 +00:00
|
|
|
- set NINJA_URL="https://github.com/ninja-build/ninja/releases/download/v1.10.0/ninja-win.zip"
|
|
|
|
- if not exist ninja.zip appveyor DownloadFile %NINJA_URL% -FileName ninja.zip
|
|
|
|
- if not exist ninja 7z x ninja.zip -oC:\projects\deps\ninja > nul
|
2016-12-21 20:44:30 +00:00
|
|
|
|
|
|
|
############################################################################
|
|
|
|
# Install a recent CMake
|
|
|
|
############################################################################
|
2020-02-21 22:01:08 +00:00
|
|
|
- set CMAKE_URL="https://github.com/Kitware/CMake/releases/download/v3.16.4/cmake-3.16.4-win64-x64.zip"
|
|
|
|
- if not exist cmake.zip appveyor DownloadFile %CMAKE_URL% -FileName cmake.zip
|
|
|
|
- if not exist cmake 7z x cmake.zip -oC:\projects\deps\cmake > nul
|
|
|
|
|
2016-12-21 20:44:30 +00:00
|
|
|
############################################################################
|
|
|
|
# Install custom LLVM
|
|
|
|
############################################################################
|
2020-02-21 22:01:08 +00:00
|
|
|
- set LLVM_URL="https://axiodl.com/files/LLVM-9.0.1-win64.exe"
|
|
|
|
- if not exist llvm.exe appveyor DownloadFile %LLVM_URL% -FileName llvm.exe
|
|
|
|
- if not exist llvm llvm.exe /S /D=C:\projects\deps\llvm
|
|
|
|
|
|
|
|
before_build:
|
|
|
|
# Configure ninja
|
|
|
|
- set PATH=C:\projects\deps\ninja;%PATH%
|
|
|
|
- ninja --version
|
|
|
|
# Configure cmake
|
|
|
|
- set PATH=C:\projects\deps\cmake\cmake-3.16.4-win64-x64\bin;%PATH%
|
|
|
|
- cmake --version
|
2020-06-26 00:17:25 +00:00
|
|
|
# Configure LLVM
|
|
|
|
- set PATH=C:\projects\deps\llvm\bin;%PATH%
|
|
|
|
- llvm-config --version
|
|
|
|
- clang-cl -v
|
2020-02-21 22:01:08 +00:00
|
|
|
# Configure VS
|
2020-06-14 00:23:14 +00:00
|
|
|
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat" amd64
|
2020-02-21 22:01:08 +00:00
|
|
|
# Fetch submodules
|
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
2016-12-21 20:44:30 +00:00
|
|
|
- git submodule update --init --recursive
|
|
|
|
|
|
|
|
build_script:
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2020-06-26 00:17:25 +00:00
|
|
|
# -DCMAKE_LINKER=lld-link -DCMAKE_AR=llvm-ar -DCMAKE_RANLIB=llvm-ranlib
|
|
|
|
- cmake -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DLLVM_ROOT_DIR=C:\projects\deps\llvm -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -GNinja ..
|
2020-02-21 22:01:08 +00:00
|
|
|
- ninja urde
|
|
|
|
|
2018-10-18 23:55:59 +00:00
|
|
|
#notifications:
|
|
|
|
# - provider: Slack
|
|
|
|
# incoming_webhook:
|
|
|
|
# secure: uoO0I0PWyCx0KLjBOG6d17aSVuEEvYztB/UiF8J0LmTb2O735mAdWcuZHTImDFUGZxeI34/qzOB2JKqF+h8dZA5yiprSTkWIookqQjUokAM=
|
|
|
|
# - provider: Webhook
|
|
|
|
# url: https://skyhook.glitch.me/api/webhooks/345359672326356993/M8kBYpqr1JyVNhnAHBwNN5TnZmtWy9_msxAQoeOlaa73UhPn8gLU5uYZCjU1qsAi3sGN/appveyor
|
|
|
|
# method: POST
|
|
|
|
# on_build_success: true
|
|
|
|
# on_build_failure: true
|
|
|
|
# on_build_status_changed: false
|
2020-02-21 22:01:08 +00:00
|
|
|
|
2016-12-21 20:44:30 +00:00
|
|
|
# Uncomment this to debug AppVeyor failures.
|
2018-10-12 00:54:51 +00:00
|
|
|
#on_finish:
|
|
|
|
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|