mirror of https://github.com/mosra/magnum.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
3.1 KiB
61 lines
3.1 KiB
# kate: indent-width 2; |
|
|
|
clone_depth: 1 |
|
|
|
os: Visual Studio 2015 |
|
|
|
environment: |
|
matrix: |
|
- TARGET: desktop |
|
COMPILER: msvc |
|
- TARGET: desktop |
|
COMPILER: mingw |
|
- TARGET: desktop-gles |
|
TARGET_GLES2: ON |
|
- TARGET: desktop-gles |
|
TARGET_GLES2: OFF |
|
- TARGET: rt |
|
TARGET_GLES2: ON |
|
- TARGET: rt |
|
TARGET_GLES2: OFF |
|
|
|
notifications: |
|
- provider: Webhook |
|
url: https://webhooks.gitter.im/e/415ae90928ba0dbd3df4 |
|
on_build_success: false |
|
on_build_failure: true |
|
on_build_status_changed: true |
|
|
|
install: |
|
- cinst ninja |
|
- set PATH=C:/tools/ninja;%PATH% |
|
# `cinst mingw` fails with 404 since Dec 2016, `appveyor Downloadfile` fails |
|
# with "Message string length exceeds 32k characters" so I have to call a |
|
# fucking powershell command in order to download a file. Oh and %20 in the URL |
|
# somehow gives a 404 ALSO so I have to explicitly use spaces. WHAT THE FUCK! |
|
- IF "%TARGET%" == "desktop" IF "%COMPILER%" == "mingw" IF NOT EXIST %APPVEYOR_BUILD_FOLDER%\x86_64-6.3.0-release-posix-seh-rt_v5-rev1.7z powershell -Command "(new-object System.Net.WebClient).Downloadfile('https://sourceforge.net/projects/mingw-w64/files/Toolchains targetting Win64/Personal Builds/mingw-builds/6.3.0/threads-posix/seh/x86_64-6.3.0-release-posix-seh-rt_v5-rev1.7z', 'x86_64-6.3.0-release-posix-seh-rt_v5-rev1.7z')" |
|
- IF "%TARGET%" == "desktop" IF "%COMPILER%" == "mingw" cd C:\tools && 7z x %APPVEYOR_BUILD_FOLDER%\x86_64-6.3.0-release-posix-seh-rt_v5-rev1.7z && cd %APPVEYOR_BUILD_FOLDER% |
|
|
|
# OpenAL |
|
- IF NOT "%TARGET%" == "rt" IF NOT EXIST %APPVEYOR_BUILD_FOLDER%\openal-soft-1.17.2-bin.zip appveyor DownloadFile http://kcat.strangesoft.net/openal-binaries/openal-soft-1.17.2-bin.zip |
|
- IF NOT "%TARGET%" == "rt" 7z x openal-soft-1.17.2-bin.zip && ren openal-soft-1.17.2-bin openal && echo [General] > %APPDATA%/alsoft.ini & echo drivers=null >> %APPDATA%/alsoft.ini |
|
- IF "%TARGET%" == "desktop" ren openal\bin\Win64\soft_oal.dll OpenAL32.dll |
|
- IF "%TARGET%" == "desktop-gles" ren openal\bin\Win64\soft_oal.dll OpenAL32.dll |
|
|
|
# SDL2 |
|
- IF "%TARGET%" == "desktop" IF "%COMPILER%" == "msvc" IF NOT EXIST %APPVEYOR_BUILD_FOLDER%\SDL2-devel-2.0.4-VC.zip appveyor DownloadFile http://www.libsdl.org/release/SDL2-devel-2.0.4-VC.zip |
|
- IF "%TARGET%" == "desktop" IF "%COMPILER%" == "msvc" 7z x SDL2-devel-2.0.4-VC.zip && ren SDL2-2.0.4 SDL |
|
- IF "%TARGET%" == "desktop" IF "%COMPILER%" == "mingw" IF NOT EXIST %APPVEYOR_BUILD_FOLDER%\SDL2-devel-2.0.4-mingw.tar.gz appveyor DownloadFile http://libsdl.org/release/SDL2-devel-2.0.4-mingw.tar.gz |
|
- IF "%TARGET%" == "desktop" IF "%COMPILER%" == "mingw" 7z x SDL2-devel-2.0.4-mingw.tar.gz & 7z x SDL2-devel-2.0.4-mingw.tar & ren SDL2-2.0.4 SDL |
|
|
|
build_script: |
|
- IF "%TARGET%" == "desktop" IF "%COMPILER%" == "msvc" call package\ci\appveyor-desktop.bat |
|
- IF "%TARGET%" == "desktop" IF "%COMPILER%" == "mingw" call package\ci\appveyor-desktop-mingw.bat |
|
- IF "%TARGET%" == "desktop-gles" call package\ci\appveyor-desktop-gles.bat |
|
- IF "%TARGET%" == "rt" call package\ci\appveyor-rt.bat |
|
|
|
cache: |
|
- SDL2-devel-2.0.4-VC.zip |
|
- SDL2-devel-2.0.4-mingw.zip |
|
- openal-soft-1.17.2-bin.zip |
|
- x86_64-6.3.0-release-posix-seh-rt_v5-rev1.7z
|
|
|