-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
49 lines (40 loc) · 1.02 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
# Based on the "trust" template v0.1.2
# https://github.com/japaric/trust/tree/v0.1.2
environment:
global:
CRATE_NAME: deoptloader
platform: x64
install:
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
- rustup-init.exe -y --default-toolchain stable
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- rustc -Vv
- cargo -V
build_script:
- if [%APPVEYOR_REPO_TAG%]==[false] (
cargo test --verbose
) else (
cargo rustc --verbose --release
)
test: false
before_deploy:
- cargo rustc --verbose --release
- ps: >-
$ZIP = "$($Env:CRATE_NAME)-$($Env:APPVEYOR_REPO_TAG_NAME)-windows.zip";
7z a "$ZIP" ".\target\release\$($Env:CRATE_NAME).exe";
Push-AppveyorArtifact "$ZIP"
deploy:
artifact: /.*\.zip/
auth_token:
secure: XpPcJlXbKvXuHihbLYOwHeDElsgP7Up2ON2ACIXItFk9Axig8ewHC0SlVK8FOgGW
description: ''
on:
appveyor_repo_tag: true
provider: GitHub
cache:
- C:\Users\appveyor\.cargo\registry
- target
branches:
only:
- /^v\d+\.\d+\.\d+/
- master