-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathappveyor.yml
46 lines (38 loc) · 1.26 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
# Based on the "trust" template v0.1.1
# https://github.com/japaric/trust/tree/v0.1.1
environment:
matrix:
- TARGET: i686-pc-windows-msvc
TARGET_DESC: windows-i686
RUST_VERSION: nightly
- TARGET: x86_64-pc-windows-msvc
TARGET_DESC: windows-x86_64
RUST_VERSION: nightly
matrix:
fast_finish: true
allow_failures:
- RUST_VERSION: nightly
install:
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
- rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_VERSION%
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- rustc -Vv
- cargo -V
test_script:
- if [%APPVEYOR_REPO_TAG%] == [false] (cargo build --verbose --target %TARGET%)
- if [%APPVEYOR_REPO_TAG%] == [false] (cargo test --verbose -p screeps-rs-network --target %TARGET%)
- if [%APPVEYOR_REPO_TAG%] == [false] (cargo test --verbose -p screeps-rs-ui --target %TARGET%)
cache:
- target
# Disable the appveyor build step so we can just build the rust project instead.
build: off
before_deploy:
- cargo build --release -p screeps-rs-ui --target %TARGET%
- ps: scripts\predeploy.ps1
deploy:
provider: GitHub
artifact: /.*\.zip/
auth_token:
secure: X18qThheIxFsNHaDdLRJPSZN6e9AlZ8NyNogB+/vISdgUsRHTJYdPF4DHXbA0DxH
on:
appveyor_repo_tag: true