This repository has been archived by the owner on Jun 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
79 lines (69 loc) · 2.21 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
72
73
74
75
76
77
78
79
os: Visual Studio 2015
cache:
- 'C:\Users\appveyor\.cargo'
- target
matrix:
allow_failures:
- channel: nightly
install:
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init.exe -y --default-host %target% --default-toolchain %channel%
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- rustc -V
- cargo -V
build_script:
- cmd: cargo build %RELEASE% --verbose --features="all %EXTRA_FEATURES%"
test_script:
- cmd: cargo test --all %RELEASE% --verbose --features="all %EXTRA_FEATURES%" -- --ignored
for:
-
branches:
only:
- master
environment:
matrix:
- channel: stable
target: x86_64-pc-windows-msvc
- channel: beta
target: x86_64-pc-windows-msvc
- channel: nightly
target: x86_64-pc-windows-msvc
- channel: 1.36.0 # Oldest supported version. Keep in sync with README.md.
target: x86_64-pc-windows-msvc
# Build a release build on master to make sure it builds.
- channel: stable
target: x86_64-pc-windows-msvc
RELEASE: --release
-
branches:
only:
- /v\d+\.\d+\.\d+/
- master
environment:
# Only build a release build for releases.
channel: stable
target: x86_64-pc-windows-msvc
RELEASE: --release
before_deploy:
- ps: |
$NAME = "cargo-crev-${env:APPVEYOR_REPO_TAG_NAME}-${env:TARGET}"
New-Item -Path $NAME -ItemType directory
Copy-Item target/release/cargo-crev.exe "${NAME}/"
Copy-Item LICENSE-MIT "${NAME}/"
Copy-Item LICENSE-MPL2 "${NAME}/"
Copy-Item LICENSE-APACHE "${NAME}/"
Copy-Item cargo-crev/README.md "${NAME}/"
7z a -ttar "${NAME}.tar" "${NAME}"
7z a "${NAME}.tar.gz" "${NAME}.tar"
(Get-FileHash "${NAME}.tar.gz").Hash | Out-File "${NAME}.tar.gz.sha256" -NoNewline
Push-AppveyorArtifact "${NAME}.tar.gz" -DeploymentName windep
Push-AppveyorArtifact "${NAME}.tar.gz.sha256" -DeploymentName windep
deploy:
artifact: windep
auth_token:
secure: x1b6Wm5JImKLmkZZSGxNvxTiRqTpk5Fi/+ttBL+CHOPg1ChRXbbhmwLwdqXzmlXi
description: ''
on:
appveyor_repo_tag: true
provider: GitHub
force_update: true