############################################################################ # URDE appveyor build configuration ############################################################################ clone_depth: 1 platform: - x64 build_cloud: AXIODL-BUILDBOT image: Windows build: verbosity: detailed configuration: - Release cache: - C:\projects\deps install: ############################################################################ # All external dependencies are installed in C:\projects\deps ############################################################################ - if not exist C:\projects\deps mkdir C:\projects\deps - cd C:\projects\deps ############################################################################ # Install Ninja ############################################################################ - 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 ############################################################################ # Install a recent CMake ############################################################################ - set CMAKE_VERSION=3.16.4 - set CMAKE_URL=https://github.com/Kitware/CMake/releases/download/v%CMAKE_VERSION%/cmake-%CMAKE_VERSION%-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 ############################################################################ # Install custom LLVM ############################################################################ - set LLVM_VERSION=10.0.1 - set LLVM_URL=https://axiodl.com/files/LLVM-%LLVM_VERSION%-win64.exe - set LLVM_ROOT_DIR=C:\projects\deps\llvm-%LLVM_VERSION% - if not exist "LLVM-%LLVM_VERSION%-win64.exe" appveyor DownloadFile %LLVM_URL% -FileName "LLVM-%LLVM_VERSION%-win64.exe" - if not exist "llvm-%LLVM_VERSION%" "LLVM-%LLVM_VERSION%-win64.exe" /S "/D=%LLVM_ROOT_DIR%" before_build: # Configure ninja - set PATH=C:\projects\deps\ninja;%PATH% - ninja --version # Configure cmake - set PATH=C:\projects\deps\cmake\cmake-%CMAKE_VERSION%-win64-x64\bin;%PATH% - cmake --version # Configure LLVM - set PATH=%LLVM_ROOT_DIR%\bin;%PATH% - llvm-config --version - clang-cl -v # Configure VS - call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat" amd64 # Fetch submodules - cd %APPVEYOR_BUILD_FOLDER% - git submodule update --init --recursive build_script: - mkdir build - cd build - cmake -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DLLVM_ROOT_DIR=%LLVM_ROOT_DIR% -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_LINKER=lld-link -DCMAKE_AR=llvm-ar -DCMAKE_RANLIB=llvm-ranlib -GNinja .. - ninja urde #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 # Uncomment this to debug AppVeyor failures. #on_finish: # - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))