mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-24 14:42:35 +03:00
eda1033246
* Fix running dist builds on tags * Only run dist builds on tags, no need to run the full matrix. * Fix dist builds on AppVeyor to include `wasm-bindgen-test-runner.exe` * Only cache `~/.cargo` on Travis for the guide build, the `target` dir changes too much to cache it.
53 lines
1.5 KiB
YAML
53 lines
1.5 KiB
YAML
environment:
|
|
global:
|
|
RUSTFLAGS: -Zunstable-options -Ctarget-feature=+crt-static
|
|
RUST_BACKTRACE: 1
|
|
CARGO_INCREMENTAL: 0 # should turn this back on when fixed!
|
|
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 nightly
|
|
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
|
|
- rustc -V
|
|
- cargo -V
|
|
|
|
build: false
|
|
|
|
test_script:
|
|
- rustup target add wasm32-unknown-unknown
|
|
- npm ci
|
|
- cargo test
|
|
- cargo build --release -p wasm-bindgen-cli
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
|
|
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
|
|
|