2017-11-23 01:32:08 +03:00
|
|
|
#os: Visual Studio 2015
|
|
|
|
|
|
|
|
clone_depth: 5
|
|
|
|
|
|
|
|
cache:
|
|
|
|
- C:\ProgramData\chocolatey\bin -> appveyor.yml
|
|
|
|
- C:\ProgramData\chocolatey\lib -> appveyor.yml
|
|
|
|
|
|
|
|
init:
|
|
|
|
- cmake -E remove c:\programdata\chocolatey\bin\cpack.exe
|
|
|
|
- set PATH=%PATH:C:\Program Files (x86)\Git\usr\bin;=%
|
|
|
|
- set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
|
2017-11-24 21:57:44 +03:00
|
|
|
- if [%BITS%]==[32] set MINGW=C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32
|
|
|
|
- if [%BITS%]==[64] set MINGW=C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64
|
|
|
|
- if [%COMPILER%]==[mingw] set PATH=%MINGW%\bin;%PATH%
|
|
|
|
- set RAYLIB_PACKAGE_SUFFIX=-Win%BITS%-%COMPILER%
|
|
|
|
- set VERBOSE=1
|
2017-11-23 01:32:08 +03:00
|
|
|
|
|
|
|
environment:
|
|
|
|
matrix:
|
2017-11-24 21:57:44 +03:00
|
|
|
- compiler: mingw
|
2017-11-23 01:32:08 +03:00
|
|
|
bits: 32
|
2017-12-14 14:20:05 +03:00
|
|
|
examples: ON
|
2017-11-24 21:57:44 +03:00
|
|
|
- compiler: mingw
|
2017-11-23 01:32:08 +03:00
|
|
|
bits: 64
|
2017-12-14 14:20:05 +03:00
|
|
|
examples: ON
|
2017-11-24 21:57:44 +03:00
|
|
|
- compiler: msvc15
|
2017-11-23 01:32:08 +03:00
|
|
|
bits: 32
|
2017-12-14 14:20:05 +03:00
|
|
|
examples: OFF
|
2017-11-24 21:57:44 +03:00
|
|
|
- compiler: msvc15
|
2017-11-23 01:32:08 +03:00
|
|
|
bits: 64
|
2017-12-14 14:20:05 +03:00
|
|
|
examples: OFF
|
2017-11-23 01:32:08 +03:00
|
|
|
|
|
|
|
before_build:
|
2017-11-24 21:57:44 +03:00
|
|
|
- if [%compiler%]==[mingw] set CFLAGS=-m%BITS% & set LDFLAGS=-m%BITS% & set GENERATOR="MinGW Makefiles"
|
|
|
|
- if [%COMPILER%]==[msvc15] if [%BITS%]==[32] set GENERATOR="Visual Studio 14 2015"
|
|
|
|
- if [%COMPILER%]==[msvc15] if [%BITS%]==[64] set GENERATOR="Visual Studio 14 2015 Win64"
|
2017-11-23 01:32:08 +03:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
|
|
|
|
build_script:
|
2017-12-14 14:20:05 +03:00
|
|
|
- cmake -G %GENERATOR% -DSTATIC_RAYLIB=ON -DSHARED_RAYLIB=ON -DBUILD_EXAMPLES=%examples% -DBUILD_GAMES=%examples% ..
|
2017-11-23 01:32:08 +03:00
|
|
|
- cmake --build . --target install
|
|
|
|
|
|
|
|
after_build:
|
2017-11-24 21:57:44 +03:00
|
|
|
- cmake --build . --target package
|
2017-11-23 01:32:08 +03:00
|
|
|
|
|
|
|
before_test:
|
|
|
|
|
|
|
|
test_script:
|
|
|
|
|
2017-11-24 21:57:44 +03:00
|
|
|
artifacts:
|
|
|
|
- path: 'build\*.zip'
|
|
|
|
|
|
|
|
deploy:
|
2017-11-25 00:46:23 +03:00
|
|
|
- provider: GitHub
|
|
|
|
auth_token:
|
2017-11-25 21:40:05 +03:00
|
|
|
secure: OxKnnT3tlkPl9365cOO84rDWU4UkHIYJc0D3r3Tv7rB3HaR2BBhlhCnl7g3nuOJy
|
2017-11-25 00:46:23 +03:00
|
|
|
artifact: /.*\.zip/
|
|
|
|
draft: false
|
|
|
|
prerelease: false
|
|
|
|
force_update: true
|
|
|
|
on:
|
|
|
|
branch: develop
|
|
|
|
appveyor_repo_tag: true # deploy on tag push only
|