forked from rustwasm/wasm-bindgen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
64 lines (57 loc) · 2.18 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
environment:
global:
RUSTFLAGS: -Ctarget-feature=+crt-static
RUST_BACKTRACE: 1
matrix:
- TARGET: x86_64-pc-windows-msvc
DEPLOY: 1
install:
- ps: Install-Product node 10
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain stable
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- rustc -V
- cargo -V
- appveyor-retry appveyor DownloadFile https://github.com/mozilla/sccache/releases/download/0.2.7/sccache-0.2.7-x86_64-pc-windows-msvc.tar.gz
- tar xzf sccache-0.2.7-x86_64-pc-windows-msvc.tar.gz
- set PATH=%PATH%;%CD%/sccache-0.2.7-x86_64-pc-windows-msvc
- set RUSTC_WRAPPER=sccache
build: false
test_script:
- rustup target add wasm32-unknown-unknown
- npm install
- cargo test
- cargo build --release -p wasm-bindgen-cli
- where chromedriver
- set CHROMEDRIVER=C:\Tools\WebDriver\chromedriver.exe
- cargo test -p js-sys --target wasm32-unknown-unknown
- cargo test -p webidl-tests --target wasm32-unknown-unknown
# Try just a few features for `web-sys`, unfortunately the whole crate blows
# system command line limits meaning we can't even spawn rustc to enable all
# the features.
- cargo build --manifest-path crates/web-sys/Cargo.toml --target wasm32-unknown-unknown --features "Node Window Document"
branches:
only:
- master
- /^\d/
before_deploy:
- ps: |
$NAME = "wasm-bindgen-${env:APPVEYOR_REPO_TAG_NAME}-${env:TARGET}"
New-Item -Path $NAME -ItemType directory
Copy-Item target/release/wasm-bindgen.exe "${NAME}/"
Copy-Item target/release/wasm2es6js.exe "${NAME}/"
Copy-Item target/release/wasm-bindgen-test-runner.exe "${NAME}/"
Copy-Item LICENSE-MIT "${NAME}/"
Copy-Item LICENSE-APACHE "${NAME}/"
Copy-Item README.md "${NAME}/"
7z a -ttar "${NAME}.tar" "${NAME}"
7z a "${NAME}.tar.gz" "${NAME}.tar"
Push-AppveyorArtifact "${NAME}.tar.gz"
deploy:
artifact: /.*\.tar.gz/
auth_token:
secure: dtHSvbZkdAFtL0J5YrSw8DpxjfYuHWgqD1SupmJT/yfYSjEBiX55RFXRoqBM2tx1
description: ''
on:
appveyor_repo_tag: true
provider: GitHub