Merge pull request #989 from alexcrichton/stable-ci

Promote CI jobs to using stable Rust
This commit is contained in:
Alex Crichton 2018-10-28 14:14:49 -07:00 committed by GitHub
commit 8d695b800d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
23 changed files with 53 additions and 65 deletions

View File

@ -9,7 +9,7 @@ environment:
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
- 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

View File

@ -54,8 +54,7 @@ after_script:
matrix:
include:
# Tests for wasm-bindgen itself pass
- rust: beta
env: JOB=test-bindgen
- name: "test wasm-bindgen crate"
install:
- *INSTALL_NODE_VIA_NVM
- *INSTALL_GECKODRIVER
@ -81,7 +80,7 @@ matrix:
# Tests the `nightly` feature of wasm-bindgen
- rust: nightly
env: JOB=test-bindgen-nightly
name: "test: wasm-bindgen crate nightly feature"
install:
- *INSTALL_NODE_VIA_NVM
script:
@ -89,8 +88,7 @@ matrix:
if: branch = master
# All examples work
- rust: nightly
name: "examples - almost all examples"
- name: "examples - almost all examples"
install:
- *INSTALL_NODE_VIA_NVM
- *INSTALL_AWS
@ -123,8 +121,7 @@ matrix:
if: branch = master
# The `web-sys` crate's tests pass
- rust: beta
env: JOB=test-web-sys
- name: "test web-sys crate"
install:
- *INSTALL_NODE_VIA_NVM
- *INSTALL_GECKODRIVER
@ -144,8 +141,7 @@ matrix:
if: branch = master
# The `js-sys` crate's tests pass
- rust: beta
env: JOB=test-js-sys
- name: "test js-sys crate"
install:
- *INSTALL_NODE_VIA_NVM
- *INSTALL_GECKODRIVER
@ -158,8 +154,7 @@ matrix:
if: branch = master
# WebIDL tests pass
- rust: beta
env: JOB=test-webidl
- name: "test wasm-bindgen-webidl crate"
install: *INSTALL_NODE_VIA_NVM
script:
- cargo test -p wasm-bindgen-webidl
@ -168,12 +163,12 @@ matrix:
# UI tests for the macro work just fine
- rust: nightly
env: JOB=macro-ui
name: "test ui tests"
script: cargo test -p ui-tests
if: branch = master
# Dist linux binary
- rust: nightly
- name: "dist: Linux (x86_64-unknown-linux-musl)"
env: JOB=dist-linux TARGET=x86_64-unknown-linux-musl
before_script: rustup target add $TARGET
script:
@ -189,21 +184,14 @@ matrix:
<<: *DEPLOY_TO_GITHUB
# Dist OSX binary
- rust: nightly
- name: "dist: OSX (x86_64-apple-darwin)"
os: osx
env: JOB=dist-osx MACOSX_DEPLOYMENT_TARGET=10.7 TARGET=x86_64-apple-darwin
script: cargo build --manifest-path crates/cli/Cargo.toml --release --target $TARGET
<<: *DEPLOY_TO_GITHUB
# CLI builds on stable
- rust: stable
env: JOB=check-stable-cli
script: cargo check --manifest-path crates/cli/Cargo.toml
if: branch = master
# Build mdbook documentation
- rust: stable
env: JOB=guide-build
- name: "doc: Guide documentation"
install:
- mkdir -p $HOME/mdbook
- curl -L https://github.com/rust-lang-nursery/mdBook/releases/download/v0.2.1/mdbook-v0.2.1-x86_64-unknown-linux-musl.tar.gz | tar xzf - -C $HOME/mdbook
@ -218,10 +206,10 @@ matrix:
# Build API documentation
- rust: nightly
env: JOB=api-docs
name: "doc: API documentation"
install: *INSTALL_AWS
script:
- cargo doc --no-deps
- cargo doc --no-deps --features 'nightly serde-serialize'
- cargo doc --no-deps --manifest-path crates/js-sys/Cargo.toml
- cargo doc --no-deps --manifest-path crates/futures/Cargo.toml
- cargo doc --no-deps --manifest-path crates/web-sys/Cargo.toml --all-features

View File

@ -4,8 +4,8 @@
set -ex
cargo +nightly build --target wasm32-unknown-unknown --release
cargo +nightly run --manifest-path ../../crates/cli/Cargo.toml \
cargo build --target wasm32-unknown-unknown --release
cargo run --manifest-path ../../crates/cli/Cargo.toml \
--bin wasm-bindgen -- \
../../target/wasm32-unknown-unknown/release/add.wasm --out-dir .
npm install

View File

@ -5,9 +5,9 @@
set -ex
cd "$(dirname $0)"
cargo +nightly build --target wasm32-unknown-unknown
cargo build --target wasm32-unknown-unknown
cargo +nightly run --manifest-path ../../crates/cli/Cargo.toml \
cargo run --manifest-path ../../crates/cli/Cargo.toml \
--bin wasm-bindgen -- \
../../target/wasm32-unknown-unknown/debug/canvas.wasm --out-dir .

View File

@ -3,14 +3,14 @@
set -ex
# Build the `hello_world.wasm` file using Cargo/rustc
cargo +nightly build --target wasm32-unknown-unknown
cargo build --target wasm32-unknown-unknown
# Run the `wasm-bindgen` CLI tool to postprocess the wasm file emitted by the
# Rust compiler to emit the JS support glue that's necessary
#
# Here we're using the version of the CLI in this repository, but for external
# usage you'd use the commented out version below
cargo +nightly run --manifest-path ../../crates/cli/Cargo.toml \
cargo run --manifest-path ../../crates/cli/Cargo.toml \
--bin wasm-bindgen -- \
../../target/wasm32-unknown-unknown/debug/char.wasm --out-dir .
# wasm-bindgen ../../target/wasm32-unknown-unknown/hello_world.wasm --out-dir .

View File

@ -7,7 +7,7 @@ authors = ["Alex Crichton <alex@alexcrichton.com>"]
crate-type = ["cdylib"]
[dependencies]
wasm-bindgen = { path = "../..", features = ['nightly'] }
wasm-bindgen = { path = "../.." }
js-sys = { path = "../../crates/js-sys" }
[dependencies.web-sys]

View File

@ -4,8 +4,8 @@
set -ex
cargo +nightly build --target wasm32-unknown-unknown
cargo +nightly run --manifest-path ../../crates/cli/Cargo.toml \
cargo build --target wasm32-unknown-unknown
cargo run --manifest-path ../../crates/cli/Cargo.toml \
--bin wasm-bindgen -- \
../../target/wasm32-unknown-unknown/debug/closures.wasm --out-dir .
npm install

View File

@ -4,8 +4,8 @@
set -ex
cargo +nightly build --target wasm32-unknown-unknown
cargo +nightly run --manifest-path ../../crates/cli/Cargo.toml \
cargo build --target wasm32-unknown-unknown
cargo run --manifest-path ../../crates/cli/Cargo.toml \
--bin wasm-bindgen -- \
../../target/wasm32-unknown-unknown/debug/console_log.wasm --out-dir .
npm install

View File

@ -4,8 +4,8 @@
set -ex
cargo +nightly build --target wasm32-unknown-unknown
cargo +nightly run --manifest-path ../../crates/cli/Cargo.toml \
cargo build --target wasm32-unknown-unknown
cargo run --manifest-path ../../crates/cli/Cargo.toml \
--bin wasm-bindgen -- \
../../target/wasm32-unknown-unknown/debug/dom.wasm --out-dir .
npm install

View File

@ -5,9 +5,9 @@
set -ex
cd "$(dirname $0)"
cargo +nightly build --target wasm32-unknown-unknown
cargo build --target wasm32-unknown-unknown
cargo +nightly run --manifest-path ../../crates/cli/Cargo.toml \
cargo run --manifest-path ../../crates/cli/Cargo.toml \
--bin wasm-bindgen -- \
../../target/wasm32-unknown-unknown/debug/rust_duck_typed_interfaces.wasm --out-dir .

View File

@ -4,8 +4,8 @@
set -ex
cargo +nightly build --target wasm32-unknown-unknown
cargo +nightly run --manifest-path ../../crates/cli/Cargo.toml \
cargo build --target wasm32-unknown-unknown
cargo run --manifest-path ../../crates/cli/Cargo.toml \
--bin wasm-bindgen -- \
../../target/wasm32-unknown-unknown/debug/fetch.wasm --out-dir .

View File

@ -4,8 +4,8 @@
set -ex
cargo +nightly build --target wasm32-unknown-unknown --release
cargo +nightly run --manifest-path ../../crates/cli/Cargo.toml \
cargo build --target wasm32-unknown-unknown --release
cargo run --manifest-path ../../crates/cli/Cargo.toml \
--bin wasm-bindgen -- \
../../target/wasm32-unknown-unknown/release/guide_supported_types_examples.wasm --out-dir .
npm install

View File

@ -3,14 +3,14 @@
set -ex
# Build the `hello_world.wasm` file using Cargo/rustc
cargo +nightly build --target wasm32-unknown-unknown
cargo build --target wasm32-unknown-unknown
# Run the `wasm-bindgen` CLI tool to postprocess the wasm file emitted by the
# Rust compiler to emit the JS support glue that's necessary
#
# Here we're using the version of the CLI in this repository, but for external
# usage you'd use the commented out version below
cargo +nightly run --manifest-path ../../crates/cli/Cargo.toml \
cargo run --manifest-path ../../crates/cli/Cargo.toml \
--bin wasm-bindgen -- \
../../target/wasm32-unknown-unknown/debug/hello_world.wasm --out-dir .
# wasm-bindgen ../../target/wasm32-unknown-unknown/hello_world.wasm --out-dir .

View File

@ -4,8 +4,8 @@
set -ex
cargo +nightly build --target wasm32-unknown-unknown
cargo +nightly run --manifest-path ../../crates/cli/Cargo.toml \
cargo build --target wasm32-unknown-unknown
cargo run --manifest-path ../../crates/cli/Cargo.toml \
--bin wasm-bindgen -- \
../../target/wasm32-unknown-unknown/debug/import_js.wasm --out-dir .
npm install

View File

@ -4,8 +4,8 @@
set -ex
cargo +nightly build --target wasm32-unknown-unknown --release
cargo +nightly run --manifest-path ../../crates/cli/Cargo.toml \
cargo build --target wasm32-unknown-unknown --release
cargo run --manifest-path ../../crates/cli/Cargo.toml \
--bin wasm-bindgen -- \
../../target/wasm32-unknown-unknown/release/julia_set.wasm --out-dir .
npm install

View File

@ -2,9 +2,9 @@
set -ex
cargo +nightly build --target wasm32-unknown-unknown
cargo build --target wasm32-unknown-unknown
cargo +nightly run --manifest-path ../../crates/cli/Cargo.toml \
cargo run --manifest-path ../../crates/cli/Cargo.toml \
--bin wasm-bindgen -- \
--no-modules \
../../target/wasm32-unknown-unknown/debug/no_modules.wasm --out-dir .

View File

@ -5,9 +5,9 @@
set -ex
cd "$(dirname $0)"
cargo +nightly build --target wasm32-unknown-unknown
cargo build --target wasm32-unknown-unknown
cargo +nightly run --manifest-path ../../crates/cli/Cargo.toml \
cargo run --manifest-path ../../crates/cli/Cargo.toml \
--bin wasm-bindgen -- \
../../target/wasm32-unknown-unknown/debug/wasm_bindgen_paint.wasm --out-dir .

View File

@ -4,8 +4,8 @@
set -ex
cargo +nightly build --target wasm32-unknown-unknown
cargo +nightly run --manifest-path ../../crates/cli/Cargo.toml \
cargo build --target wasm32-unknown-unknown
cargo run --manifest-path ../../crates/cli/Cargo.toml \
--bin wasm-bindgen -- \
../../target/wasm32-unknown-unknown/debug/performance.wasm --out-dir .
npm install

View File

@ -17,7 +17,7 @@ RUSTFLAGS='-C target-feature=+atomics' \
# here to turn it on for our bindings generation. Also note that webpack isn't
# currently compatible with atomics, so we go with the --no-modules output.
WASM_BINDGEN_THREADS=1 \
cargo +nightly run --manifest-path ../../crates/cli/Cargo.toml \
cargo run --manifest-path ../../crates/cli/Cargo.toml \
--bin wasm-bindgen -- \
../../target/wasm32-unknown-unknown/release/raytrace_parallel.wasm --out-dir . \
--no-modules

View File

@ -4,8 +4,8 @@
set -ex
cargo +nightly build --target wasm32-unknown-unknown
cargo +nightly run --manifest-path ../../crates/cli/Cargo.toml \
cargo build --target wasm32-unknown-unknown
cargo run --manifest-path ../../crates/cli/Cargo.toml \
--bin wasm-bindgen -- \
../../target/wasm32-unknown-unknown/debug/wasm_in_wasm.wasm --out-dir .
npm install

View File

@ -3,8 +3,8 @@
set -ex
# Compile our wasm module and run `wasm-bindgen`
cargo +nightly build --target wasm32-unknown-unknown --release
cargo +nightly run --manifest-path ../../crates/cli/Cargo.toml \
cargo build --target wasm32-unknown-unknown --release
cargo run --manifest-path ../../crates/cli/Cargo.toml \
--bin wasm-bindgen -- \
../../target/wasm32-unknown-unknown/release/wasm2js.wasm --out-dir .

View File

@ -4,8 +4,8 @@
set -ex
cargo +nightly build --target wasm32-unknown-unknown
cargo +nightly run --manifest-path ../../crates/cli/Cargo.toml \
cargo build --target wasm32-unknown-unknown
cargo run --manifest-path ../../crates/cli/Cargo.toml \
--bin wasm-bindgen -- \
../../target/wasm32-unknown-unknown/debug/webaudio.wasm --out-dir .

View File

@ -5,9 +5,9 @@
set -ex
cd "$(dirname $0)"
cargo +nightly build --target wasm32-unknown-unknown
cargo build --target wasm32-unknown-unknown
cargo +nightly run --manifest-path ../../crates/cli/Cargo.toml \
cargo run --manifest-path ../../crates/cli/Cargo.toml \
--bin wasm-bindgen -- \
../../target/wasm32-unknown-unknown/debug/webgl.wasm --out-dir .