wasm 32 cli run fixes, added to ci tests

This commit is contained in:
Anton-4 2022-10-08 14:32:13 +02:00 committed by Brian Carroll
parent 8f8e6bebeb
commit 54d0bc43b2
No known key found for this signature in database
GPG key ID: 5C7B2EC4101703C0
2 changed files with 6 additions and 0 deletions

View file

@ -21,3 +21,6 @@ jobs:
- name: execute tests with --release
run: /home/big-ci-user/.nix-profile/bin/nix develop -c cargo test --locked --release
- name: test wasm32 cli_run
run: /home/big-ci-user/.nix-profile/bin/nix develop -c cargo test --locked --release --features="wasm32-cli-run"

View file

@ -763,6 +763,8 @@ mod cli_run {
flags: &[&str],
expected_ending: &str,
) {
use super::{TARGET_FLAG, CMD_BUILD, run_roc, concatcp};
let mut flags = flags.to_vec();
flags.push(concatcp!(TARGET_FLAG, "=wasm32"));
@ -771,6 +773,7 @@ mod cli_run {
.iter()
.chain(flags.as_slice()),
&[],
&[],
);
if !compile_out.stderr.is_empty() {
panic!("{}", compile_out.stderr);