2019-12-31 16:14:32 +01:00
|
|
|
image: Visual Studio 2019
|
|
|
|
|
|
|
|
platform: x64
|
2017-09-26 13:16:37 +02:00
|
|
|
|
|
|
|
environment:
|
2017-11-26 02:47:54 +01:00
|
|
|
HOME: "%HOMEDRIVE%%HOMEPATH%"
|
2019-12-31 16:14:32 +01:00
|
|
|
PYTHON: C:\Python38
|
2017-11-27 14:39:05 +01:00
|
|
|
SCONS_CACHE_ROOT: "%HOME%\\scons_cache"
|
2018-08-21 10:33:09 +02:00
|
|
|
SCONS_CACHE_LIMIT: 1024
|
2019-11-14 18:06:57 +01:00
|
|
|
OPTIONS: "debug_symbols=no verbose=yes progress=no"
|
|
|
|
EXTRA_ARGS: "warnings=all werror=yes"
|
2017-09-26 13:16:37 +02:00
|
|
|
matrix:
|
2019-11-14 18:06:57 +01:00
|
|
|
- GD_PLATFORM: windows
|
|
|
|
TARGET: release_debug
|
|
|
|
TOOLS: yes
|
|
|
|
# Disabled for performance reasons until master is more stable.
|
|
|
|
# - GD_PLATFORM: windows
|
|
|
|
# TARGET: release
|
|
|
|
# TOOLS: no
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
2017-09-26 13:16:37 +02:00
|
|
|
|
2019-07-02 18:26:08 +02:00
|
|
|
init:
|
|
|
|
- ps: if ($env:APPVEYOR_REPO_BRANCH -ne "master") { $env:APPVEYOR_CACHE_SKIP_SAVE = "true" }
|
|
|
|
|
2017-11-26 02:47:54 +01:00
|
|
|
cache:
|
2017-11-27 14:39:05 +01:00
|
|
|
- "%SCONS_CACHE_ROOT%"
|
2017-11-26 02:47:54 +01:00
|
|
|
|
2017-09-26 13:16:37 +02:00
|
|
|
install:
|
|
|
|
- SET "PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
|
2019-11-02 15:21:21 +01:00
|
|
|
- pip install -U wheel # needed for pip install scons to work, otherwise a flag is missing
|
|
|
|
- pip install scons # use stable scons
|
|
|
|
- if defined VS call "%VS%" %ARCH% # if defined - so we can also use mingw
|
2017-09-26 13:16:37 +02:00
|
|
|
|
|
|
|
before_build:
|
|
|
|
- echo %GD_PLATFORM%
|
|
|
|
- python --version
|
|
|
|
- scons --version
|
2019-07-02 18:26:08 +02:00
|
|
|
- set "SCONS_CACHE=%SCONS_CACHE_ROOT%\%APPVEYOR_REPO_BRANCH%"
|
2017-09-26 13:16:37 +02:00
|
|
|
|
|
|
|
build_script:
|
2019-11-14 18:06:57 +01:00
|
|
|
- scons platform=%GD_PLATFORM% target=%TARGET% tools=%TOOLS% %OPTIONS% %EXTRA_ARGS%
|
2020-05-10 13:49:47 +02:00
|
|
|
|
|
|
|
after_build:
|
2020-05-11 17:54:36 +02:00
|
|
|
- git rev-parse --short=9 HEAD > VERSION_HASH.txt
|
|
|
|
- set /P VERSION_HASH= < VERSION_HASH.txt
|
|
|
|
- cd bin
|
|
|
|
- mv godot.windows.opt.tools.64.exe godot_%APPVEYOR_REPO_BRANCH%-%VERSION_HASH%_win64.exe
|
|
|
|
- 7z a -mx9 godot_%APPVEYOR_REPO_BRANCH%-%VERSION_HASH%_win64.zip *.exe
|
2020-07-13 20:13:38 +02:00
|
|
|
|
2020-05-10 13:49:47 +02:00
|
|
|
artifacts:
|
2020-05-11 17:54:36 +02:00
|
|
|
- path: bin/godot_${APPVEYOR_REPO_BRANCH}-${VERSION_HASH}_win64.zip
|
|
|
|
name: Win64 release_debug editor build
|
2020-07-13 20:13:38 +02:00
|
|
|
type: zip
|