-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
50 lines (40 loc) · 1.77 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: '0.1.{build}'
branches:
except:
- travis
image: Visual Studio 2019
environment:
PREMAKE_VERSION: "5.0.0-alpha15"
install:
# Dependencies required by the CI are installed in ${clone_folder}/deps/
- set DEPS_DIR="%clone_folder%\deps"
- if not exist "%DEPS_DIR%" mkdir "%DEPS_DIR%"
# verify that batch vars are accessible from PS too
- ps: echo "${env:DEPS_DIR}"
- ps: pushd "${env:DEPS_DIR}"
# Download premake binary for current platform if not already done via cache (also check version just in case)
# We simplified checks compared to .travis.yml to make it easier to write in batch
# but eventually we can re-add them in PowerShell which is much more powerful
- if not exist "premake-%PREMAKE_VERSION%" mkdir "premake-%PREMAKE_VERSION%"
- ps: pushd "premake-${env:PREMAKE_VERSION}"
# https://superuser.com/questions/362152/native-alternative-to-wget-in-windows-powershell
# make sure to expand the archive in current directory, not a subdirectory
- ps: Invoke-WebRequest "https://github.com/premake/premake-core/releases/download/v${env:PREMAKE_VERSION}/premake-${env:PREMAKE_VERSION}-windows.zip" -OutFile "premake-${env:PREMAKE_VERSION}-windows.zip"
- ps: Expand-Archive "premake-${env:PREMAKE_VERSION}-windows.zip" -DestinationPath .
- ps: popd
# No canonical path on AppVeyor Windows to copy premake to,
# so add premake location to PATH
- set PATH="${env:clone_folder}\premake-%PREMAKE_VERSION%;%PATH%"
- echo %PATH%
before_build:
# Build dependencies
- engine\third-party\build_sfml.py
# Premake
- premake5.exe gmake
build_script:
# Make (build dir must have been created by premake5)
- pushd build
# I don't know how to write `config=release make` in Batch, so just make
# for debug config for now
- make
- popd