This repository has been archived by the owner on Nov 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.appveyor.yml
62 lines (56 loc) · 1.52 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
os: Visual Studio 2017
branches:
only:
- development
- /^build-.*$/
platform:
- x64
environment:
matrix:
- channel: nightly
target: x86_64-pc-windows-msvc
cache:
- gameserver\target
- client\node_modules
- planetwars\client\node_modules
- planetwars\match-log\node_modules
- planetwars\visualizer\node_modules
- '%USERPROFILE%\.electron'
- '%USERPROFILE%\.cargo\registry'
- '%LOCALAPPDATA%\Yarn'
init:
- git config --global core.autocrlf input
# Download rust & node
install:
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init -yv --default-toolchain %channel% --default-host %target%
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin
- rustc -vV
- cargo -vV
- ps: Install-Product node 9 x64
build_script:
# Build Rust gameserver crate
- cd gameserver
- cargo build --release
- cd %APPVEYOR_BUILD_FOLDER%
# Copy binary to electron client
- copy gameserver\target\release\mozaic_bot_driver.exe planetwars\client\bin\mozaic_bot_driver
# Build js mozaic-client package (network interface)
- cd client
- yarn install
- yarn run build
- cd %APPVEYOR_BUILD_FOLDER%
# Build js planetwars-match-log package
- cd planetwars\match-log
- yarn install
- yarn build
- cd %APPVEYOR_BUILD_FOLDER%
# Build js planetwars-visualizer package
- cd planetwars\visualizer
- yarn install
- yarn build
- cd %APPVEYOR_BUILD_FOLDER%
# Build js electron client package and package binary
- cd planetwars\client
- yarn install
- yarn run package-win