mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-10 10:02:38 +03:00
Earthfile: move wasm REPL test command back to the script
This commit is contained in:
parent
07748b2b86
commit
86aec0dbe2
@ -91,9 +91,7 @@ test-rust:
|
||||
cargo test --locked --release --package test_gen --no-default-features --features gen-wasm -- --test-threads=1 && sccache --show-stats
|
||||
# repl_test: build the compiler for wasm target, then run the tests on native target
|
||||
RUN --mount=type=cache,target=$SCCACHE_DIR \
|
||||
RUSTFLAGS="" cargo build --target wasm32-unknown-unknown -p roc_repl_wasm --features wasmer --release && sccache --show-stats
|
||||
RUN --mount=type=cache,target=$SCCACHE_DIR \
|
||||
cargo test -p repl_test --features wasm -- --test-threads=1 && sccache --show-stats
|
||||
repl_test/test_wasm.sh && sccache --show-stats
|
||||
# run i386 (32-bit linux) cli tests
|
||||
RUN echo "4" | cargo run --locked --release --features="target-x86" -- --backend=x86_32 examples/benchmarks/NQueens.roc
|
||||
RUN --mount=type=cache,target=$SCCACHE_DIR \
|
||||
|
@ -3,7 +3,8 @@ set -eux
|
||||
# Build the compiler for WebAssembly target
|
||||
# We *could* write a build.rs to do this but we'd have nested cargo processes with different targets.
|
||||
# That can be solved using two separate target direcories with --target-dir but there isn't a huge win.
|
||||
cargo build --target wasm32-unknown-unknown -p roc_repl_wasm --features wasmer --release
|
||||
# We need to clear RUSTFLAGS for this command, as CI sets normally some flags that are specific to CPU targets.
|
||||
RUSTFLAGS="" cargo build --target wasm32-unknown-unknown -p roc_repl_wasm --features wasmer --release
|
||||
|
||||
# Build & run the test code on *native* target, not WebAssembly
|
||||
cargo test -p repl_test --features wasm -- --test-threads=1
|
||||
|
Loading…
Reference in New Issue
Block a user