-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathappveyor.yml
42 lines (38 loc) · 1.08 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
image: Visual Studio 2013
branches:
only:
- development
- master
- /^\d+\.\d+\.\d+$/
environment:
global:
CHANNEL: stable
matrix:
- TARGET: x86_64-pc-windows-msvc
# Install Rust and Cargo
# (Based on from https://github.com/rust-lang/libc/blob/master/appveyor.yml)
build: false
install:
- ps: Install-Product node 8 x64
- npm i -g [email protected]
- npm ci --prefix .\ci
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init.exe --default-host %TARGET% --default-toolchain %CHANNEL% -y
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- rustc -Vv
- cargo -V
after_test:
- node .\ci\checkIsRelease.js && set "DO_DEPLOY=true" || exit 0
build_script:
- cargo build --release --manifest-path gitrs_server/Cargo.toml --verbose --all
before_deploy:
- node .\ci\checkTomlSemver.js
- node .\ci\buildRelease.js
- appveyor PushArtifact %TARGET%.zip
deploy:
provider: GitHub
auth_token:
secure: zoXq0OxJO1R1p6m0fU45j8SyEFaK9LRYYyVd+jazLtt/t58Racmu9ih1C/cjucy3
artifact: '%TARGET%.zip'
on:
DO_DEPLOY: true