forked from trillek-team/tec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
71 lines (71 loc) · 2.43 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: 0.1 b{build}
skip_tags: true
image:
- Visual Studio 2019
- Ubuntu
configuration: Release
clone_depth: 1
for:
-
matrix:
only:
- image: Ubuntu
install:
- git submodule update --init
- sh: sudo apt-get update
- sh: sudo apt-get install libgl1-mesa-dev xorg-dev libglu1-mesa-dev libxinerama-dev libxcursor-dev p7zip-full -y
- sh: if [ ! -d '../vcpkg' ]; then git clone https://github.com/microsoft/vcpkg.git ../vcpkg; fi
- sh: ../vcpkg/bootstrap-vcpkg.sh
- sh: ../vcpkg/vcpkg install @vcpkg_response_files/vcpkg_common.txt @vcpkg_response_files/vcpkg_x64-linux.txt
before_build:
- mkdir -p build; cd build; cmake -DCMAKE_TOOLCHAIN_FILE=../../vcpkg/scripts/buildsystems/vcpkg.cmake -DBUILD_TESTS=true ..
build_script:
- make
after_build:
- sh: cd ..
- sh: 7z a trillek-linux.zip ./assets ./build/client/trillek-client ./build/server/trillek-serverd
artifacts:
- path: trillek-linux.zip
name: trillek-linux
deploy:
- provider: GitHub
description: nightly
auth_token:
secure: CEKm9QafhR715ptLFoEwxgB5yWODB6H7oHzIr7zmE54YCep5vEMcgCDi2sAsFW4d
artifact: trillek-linux
on:
branch: master
prerelease: true
cache: /home/appveyor/projects/vcpkg -> vcpkg_response_files/vcpkg_x64-linux.txt
test_script: ./build/tests/tests
-
matrix:
only:
- image: Visual Studio 2019
install:
- git submodule update --init
- cmd: vcpkg install @vcpkg_response_files/vcpkg_common.txt @vcpkg_response_files/vcpkg_x64-windows.txt
- cmd: mkdir build
- cmd: cd build
before_build:
- cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_TOOLCHAIN_FILE=C:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake -DBUILD_TESTS=true ..
build:
project: .\build\trillek.sln
verbosity: minimal
after_build:
- cmd: cd ..
- cmd: 7z a trillek-win32.zip .\assets .\build\client\Release\trillek-client.exe .\build\client\Release\*.dll .\build\server\Release\trillek-server.exe
artifacts:
- path: trillek-win32.zip
name: trillek-win32
deploy:
- provider: GitHub
description: nightly
auth_token:
secure: CEKm9QafhR715ptLFoEwxgB5yWODB6H7oHzIr7zmE54YCep5vEMcgCDi2sAsFW4d
artifact: trillek-win32
on:
branch: master
prerelease: true
cache: c:\tools\vcpkg\installed\ -> vcpkg_response_files/vcpkg_x64-windows.txt
test_script: '%APPVEYOR_BUILD_FOLDER%\build\tests\%CONFIGURATION%\tests.exe'