Build both crates seperately; use correct target
Also make the wasm32-unknown-unknown target available.
This commit is contained in:
parent
b0a75662bf
commit
9f0449cc53
1 changed files with 7 additions and 3 deletions
|
@ -11,6 +11,10 @@ cache:
|
|||
- cargo/
|
||||
- target/
|
||||
|
||||
# Add the wasm32-unknown-unknown target for Rust
|
||||
before_script:
|
||||
- rustup target add wasm32-unknown-unknown
|
||||
|
||||
# Defines stages which are to be executed
|
||||
stages:
|
||||
- build
|
||||
|
@ -21,6 +25,6 @@ run-build:
|
|||
image: rustlang/rust:nightly
|
||||
script:
|
||||
- rustc --version && cargo --version
|
||||
- cargo build --release --jobs 1
|
||||
- cargo test -- --test-threads 1
|
||||
|
||||
- cargo build -p stoptime_server --release --jobs 1
|
||||
- cargo build -p stoptime_ui --target wasm32-unknown-unknown --release --jobs 1
|
||||
- cargo test -p stoptime_server --all-features -- --test-threads 1
|
||||
|
|
Loading…
Reference in a new issue