Skip to content

Commit

Permalink
Fix benchmarks build
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Jul 23, 2020
1 parent b8624bc commit 5a10654
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,12 @@ jobs:
displayName: "Build benchmarks"
steps:
- template: ci/azure-install-rust.yml
- template: ci/azure-install-wasm-pack.yml
- script: wasm-pack build --target web benchmarks
- script: rustup target add wasm32-unknown-unknown
displayName: "add target"
- script: cargo build --manifest-path benchmarks/Cargo.toml --release --target wasm32-unknown-unknown
displayName: "build benchmarks"
- script: rm -f benchmarks/pkg/.gitignore
displayName: "remove stray gitignore"
- script: cargo run -p wasm-bindgen-cli target/wasm32-unknown-unknown/release/wasm_bindgen_benchmark.wasm --out-dir benchmarks/pkg --target web
displayName: "run wasm-bindgen"
- task: PublishPipelineArtifact@0
inputs:
artifactName: benchmarks
Expand Down
1 change: 1 addition & 0 deletions crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Command line interface of the `#[wasm_bindgen]` attribute and project. For more
information see https://github.com/rustwasm/wasm-bindgen.
"""
edition = '2018'
default-run = 'wasm-bindgen'

[dependencies]
curl = "0.4.13"
Expand Down

0 comments on commit 5a10654

Please sign in to comment.