Skip to content
This repository was archived by the owner on Dec 15, 2021. It is now read-only.

Commit c349ba5

Browse files
committed
ci: update the appveyor.yml file
1 parent 2172d7a commit c349ba5

File tree

1 file changed

+32
-19
lines changed

1 file changed

+32
-19
lines changed

appveyor.yml

Lines changed: 32 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,55 @@
1+
# Based on the "trust" template v0.1.1
2+
# https://github.com/japaric/trust/tree/v0.1.1
3+
14
environment:
25
global:
3-
CRATE_NAME: itm
4-
DEPLOY_VERSION: stable
56
RUST_VERSION: stable
7+
8+
CRATE_NAME: itm
9+
610
matrix:
11+
# MinGW
712
- TARGET: i686-pc-windows-gnu
8-
- TARGET: i686-pc-windows-msvc
913
- TARGET: x86_64-pc-windows-gnu
14+
15+
# MSVC
16+
- TARGET: i686-pc-windows-msvc
1017
- TARGET: x86_64-pc-windows-msvc
1118

1219
install:
13-
- ps: ci\install.ps1
14-
15-
build: false
20+
- ps: >-
21+
If ($Env:TARGET -eq 'x86_64-pc-windows-gnu') {
22+
$Env:PATH += ';C:\msys64\mingw64\bin'
23+
} ElseIf ($Env:TARGET -eq 'i686-pc-windows-gnu') {
24+
$Env:PATH += ';C:\msys64\mingw32\bin'
25+
}
26+
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
27+
- rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_VERSION%
28+
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
29+
- rustc -Vv
30+
- cargo -V
1631

1732
test_script:
33+
# we don't run the "test phase" when doing deploys
1834
- if [%APPVEYOR_REPO_TAG%]==[false] (
19-
cargo build --target %TARGET% &&
20-
cargo build --target %TARGET% --release &&
35+
cargo check --target %TARGET% &&
2136
cargo test --target %TARGET% &&
2237
cargo test --target %TARGET% --release
23-
) else (
24-
if [%RUST_VERSION%]==[%DEPLOY_VERSION%] (
25-
cargo rustc --target %TARGET% --release --bin itmdump -- -C lto
26-
)
2738
)
2839

2940
before_deploy:
30-
- ps: ci\package.ps1
41+
- cargo rustc --target %TARGET% --release --bin itmdump -- -C lto
42+
- ps: ci\before_deploy.ps1
3143

3244
deploy:
33-
description: 'Windows release'
3445
artifact: /.*\.zip/
3546
auth_token:
36-
secure: bQ29dEXeNG5VP2hQcWiZ1xsfmkGosteCDNeYu/cXTX4lOeghOp0qANpQXmGfal29
37-
provider: GitHub
47+
secure: rd6LZNLq3cAirX2+zaJgAajpMta9amwZx1e5jkee1iM8R5/axwHxQ9lMU1wTnvw8
48+
description: ''
3849
on:
39-
# NOTE this "version" must match %DEPLOY_VERSION% (see top)
4050
RUST_VERSION: stable
4151
appveyor_repo_tag: true
52+
provider: GitHub
4253

4354
cache:
4455
- C:\Users\appveyor\.cargo\registry
@@ -48,9 +59,11 @@ branches:
4859
only:
4960
# Release tags
5061
- /^v\d+\.\d+\.\d+.*$/
51-
- auto
52-
- try
62+
- master
5363

5464
notifications:
5565
- provider: Email
5666
on_build_success: false
67+
68+
# Building is done in the test phase, so we disable Appveyor's build phase.
69+
build: false

0 commit comments

Comments
 (0)