-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathappveyor.yml
43 lines (36 loc) · 1.06 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
# See https://github.com/japaric/trust/blob/master/appveyor.yml
environment:
global:
RUST_VERSION: stable
CRATE_NAME: windows-clipboard
matrix:
# MSVC
- TARGET: i686-pc-windows-gnu
- TARGET: x86_64-pc-windows-gnu
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:
# we don't run the "test phase" when doing deploys
- if [%APPVEYOR_REPO_TAG%]==[false] (
cargo build --target %TARGET% --release &&
test.bat
)
before_deploy:
- cargo rustc --target %TARGET% --release --bin clipboard -- -C lto
- test.bat
- ps: ci\before_deploy.ps1
deploy:
artifact: /.*\.zip/
auth_token:
secure: 4Zc68Y/452OvZYOiIygpVtDWa2H1nwjT4pm8v2J5VOu5nJWcr0ajTe1Ykx0eEXxb
description: ''
on:
RUST_VERSION: stable
appveyor_repo_tag: true
provider: GitHub
# Building is done in the test phase, so we disable Appveyor's build phase.
build: false