From c2ff76e4802711e0c9f667fe0fb820cdc10012c4 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Fri, 18 Aug 2023 11:43:34 +0200 Subject: [PATCH 01/19] test wasm repl inside nix --- .github/workflows/nix_linux_x86_64.yml | 6 ++++++ .github/workflows/nix_macos_apple_silicon.yml | 10 ++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nix_linux_x86_64.yml b/.github/workflows/nix_linux_x86_64.yml index 647adf6fa57..bda3880502b 100644 --- a/.github/workflows/nix_linux_x86_64.yml +++ b/.github/workflows/nix_linux_x86_64.yml @@ -31,3 +31,9 @@ jobs: - name: test the dev backend # these tests require an explicit feature flag run: nix develop -c cargo test --locked --release --package test_gen --no-default-features --features gen-dev + + - name: wasm repl tests + run: nix develop -c crates/repl_test/test_wasm.sh + + - name: test building wasm repl + run: nix develop -c ./ci/www-repl.sh diff --git a/.github/workflows/nix_macos_apple_silicon.yml b/.github/workflows/nix_macos_apple_silicon.yml index 0f00277d2cd..056424d2096 100644 --- a/.github/workflows/nix_macos_apple_silicon.yml +++ b/.github/workflows/nix_macos_apple_silicon.yml @@ -39,11 +39,17 @@ jobs: run: cd examples/platform-switching/rust-platform && nix develop -c cargo test --release --locked - name: test launching the editor - run: cargo test --release --locked editor_launch_test::launch -- --ignored # `--ignored` to run this test that is ignored for "normal" runs + run: nix develop -c cargo test --release --locked editor_launch_test::launch -- --ignored # `--ignored` to run this test that is ignored for "normal" runs # we run the llvm wasm tests only on this machine because it is fast and wasm should be cross-target - name: execute llvm wasm tests with --release run: nix develop -c cargo test-gen-llvm-wasm --locked --release - name: test website build script - run: REPL_DEBUG=1 bash www/build.sh + run: nix develop -c REPL_DEBUG=1 bash www/build.sh + + - name: wasm repl tests + run: nix develop -c crates/repl_test/test_wasm.sh + + - name: test building wasm repl + run: nix develop -c ./ci/www-repl.sh From a77d249b9f4c70d5582d3c6c05874330a6399e35 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Fri, 18 Aug 2023 12:30:55 +0200 Subject: [PATCH 02/19] added quotes for env var --- .github/workflows/nix_macos_apple_silicon.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nix_macos_apple_silicon.yml b/.github/workflows/nix_macos_apple_silicon.yml index 056424d2096..30070d8ab20 100644 --- a/.github/workflows/nix_macos_apple_silicon.yml +++ b/.github/workflows/nix_macos_apple_silicon.yml @@ -46,7 +46,7 @@ jobs: run: nix develop -c cargo test-gen-llvm-wasm --locked --release - name: test website build script - run: nix develop -c REPL_DEBUG=1 bash www/build.sh + run: nix develop -c "REPL_DEBUG=1 bash www/build.sh" - name: wasm repl tests run: nix develop -c crates/repl_test/test_wasm.sh From a53d2defd67edf1ffefd7d59bd5c789cda9867d5 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Fri, 18 Aug 2023 13:33:35 +0200 Subject: [PATCH 03/19] try to fix bash call Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --- .github/workflows/nix_macos_apple_silicon.yml | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/nix_macos_apple_silicon.yml b/.github/workflows/nix_macos_apple_silicon.yml index 30070d8ab20..c4a5a63c579 100644 --- a/.github/workflows/nix_macos_apple_silicon.yml +++ b/.github/workflows/nix_macos_apple_silicon.yml @@ -20,33 +20,33 @@ jobs: with: clean: "true" - - name: check formatting with rustfmt - run: nix develop -c cargo fmt --all -- --check + # - name: check formatting with rustfmt + # run: nix develop -c cargo fmt --all -- --check - - name: check code style with clippy - run: nix develop -c cargo clippy --workspace --tests -- --deny warnings + # - name: check code style with clippy + # run: nix develop -c cargo clippy --workspace --tests -- --deny warnings - - name: check code style with clippy --release - run: cargo clippy --workspace --tests --release -- --deny warnings + # - name: check code style with clippy --release + # run: cargo clippy --workspace --tests --release -- --deny warnings - - name: execute tests with --release - run: nix develop -c cargo test --locked --release + # - name: execute tests with --release + # run: nix develop -c cargo test --locked --release - - name: make a libapp.so for the next step - run: nix develop -c cargo run -- gen-stub-lib examples/platform-switching/rocLovesRust.roc + # - name: make a libapp.so for the next step + # run: nix develop -c cargo run -- gen-stub-lib examples/platform-switching/rocLovesRust.roc - - name: check that the platform`s produced dylib is loadable - run: cd examples/platform-switching/rust-platform && nix develop -c cargo test --release --locked + # - name: check that the platform`s produced dylib is loadable + # run: cd examples/platform-switching/rust-platform && nix develop -c cargo test --release --locked - - name: test launching the editor - run: nix develop -c cargo test --release --locked editor_launch_test::launch -- --ignored # `--ignored` to run this test that is ignored for "normal" runs + # - name: test launching the editor + # run: nix develop -c cargo test --release --locked editor_launch_test::launch -- --ignored # `--ignored` to run this test that is ignored for "normal" runs - # we run the llvm wasm tests only on this machine because it is fast and wasm should be cross-target - - name: execute llvm wasm tests with --release - run: nix develop -c cargo test-gen-llvm-wasm --locked --release + # # we run the llvm wasm tests only on this machine because it is fast and wasm should be cross-target + # - name: execute llvm wasm tests with --release + # run: nix develop -c cargo test-gen-llvm-wasm --locked --release - name: test website build script - run: nix develop -c "REPL_DEBUG=1 bash www/build.sh" + run: nix develop -c "REPL_DEBUG=1 ./www/build.sh" - name: wasm repl tests run: nix develop -c crates/repl_test/test_wasm.sh From 04134f6b0650c7de07f1902e2e0af4809ebf0c50 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Fri, 18 Aug 2023 14:14:24 +0200 Subject: [PATCH 04/19] use `--env` for env var Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --- .github/workflows/nix_macos_apple_silicon.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nix_macos_apple_silicon.yml b/.github/workflows/nix_macos_apple_silicon.yml index c4a5a63c579..010f9bd4c5a 100644 --- a/.github/workflows/nix_macos_apple_silicon.yml +++ b/.github/workflows/nix_macos_apple_silicon.yml @@ -46,7 +46,7 @@ jobs: # run: nix develop -c cargo test-gen-llvm-wasm --locked --release - name: test website build script - run: nix develop -c "REPL_DEBUG=1 ./www/build.sh" + run: nix develop --env REPL_DEBUG=1 -c ./www/build.sh" - name: wasm repl tests run: nix develop -c crates/repl_test/test_wasm.sh From 9d81fbca975a1a254751cf68699bf6504aa052aa Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Fri, 18 Aug 2023 14:15:28 +0200 Subject: [PATCH 05/19] remove old dangling quote Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --- .github/workflows/nix_macos_apple_silicon.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nix_macos_apple_silicon.yml b/.github/workflows/nix_macos_apple_silicon.yml index 010f9bd4c5a..c4c85a2ee31 100644 --- a/.github/workflows/nix_macos_apple_silicon.yml +++ b/.github/workflows/nix_macos_apple_silicon.yml @@ -46,7 +46,7 @@ jobs: # run: nix develop -c cargo test-gen-llvm-wasm --locked --release - name: test website build script - run: nix develop --env REPL_DEBUG=1 -c ./www/build.sh" + run: nix develop --env REPL_DEBUG=1 -c ./www/build.sh - name: wasm repl tests run: nix develop -c crates/repl_test/test_wasm.sh From cb088e54fd1154a2455d1394921ddb162aafcaa4 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Fri, 18 Aug 2023 14:19:37 +0200 Subject: [PATCH 06/19] try single quotes Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --- .github/workflows/nix_macos_apple_silicon.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nix_macos_apple_silicon.yml b/.github/workflows/nix_macos_apple_silicon.yml index c4c85a2ee31..c66bfc8156b 100644 --- a/.github/workflows/nix_macos_apple_silicon.yml +++ b/.github/workflows/nix_macos_apple_silicon.yml @@ -46,7 +46,7 @@ jobs: # run: nix develop -c cargo test-gen-llvm-wasm --locked --release - name: test website build script - run: nix develop --env REPL_DEBUG=1 -c ./www/build.sh + run: nix develop -c 'REPL_DEBUG=1 ./www/build.sh' - name: wasm repl tests run: nix develop -c crates/repl_test/test_wasm.sh From dd4e510384f0f4d37e5da744c1af693c4b3373a6 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Fri, 18 Aug 2023 14:35:17 +0200 Subject: [PATCH 07/19] change env var approach Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --- .github/workflows/nix_macos_apple_silicon.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nix_macos_apple_silicon.yml b/.github/workflows/nix_macos_apple_silicon.yml index c66bfc8156b..ef86e6f624e 100644 --- a/.github/workflows/nix_macos_apple_silicon.yml +++ b/.github/workflows/nix_macos_apple_silicon.yml @@ -46,7 +46,10 @@ jobs: # run: nix develop -c cargo test-gen-llvm-wasm --locked --release - name: test website build script - run: nix develop -c 'REPL_DEBUG=1 ./www/build.sh' + run: | + sed -i '1aREPL_DEBUG=1' ./www/build.sh + cat ./www/build.sh + nix develop -c ./www/build.sh - name: wasm repl tests run: nix develop -c crates/repl_test/test_wasm.sh From ef6b2e97ae1378c2bbf45e3346772cdcaa08f733 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Fri, 18 Aug 2023 14:36:33 +0200 Subject: [PATCH 08/19] use explicit bash Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --- .github/workflows/nix_macos_apple_silicon.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nix_macos_apple_silicon.yml b/.github/workflows/nix_macos_apple_silicon.yml index ef86e6f624e..68ef2536d5a 100644 --- a/.github/workflows/nix_macos_apple_silicon.yml +++ b/.github/workflows/nix_macos_apple_silicon.yml @@ -49,7 +49,7 @@ jobs: run: | sed -i '1aREPL_DEBUG=1' ./www/build.sh cat ./www/build.sh - nix develop -c ./www/build.sh + nix develop -c bash www/build.sh - name: wasm repl tests run: nix develop -c crates/repl_test/test_wasm.sh From 4888d0fd623bd59107d052e1b63c5a49dcb4612a Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Fri, 18 Aug 2023 14:37:28 +0200 Subject: [PATCH 09/19] don't use dot Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --- .github/workflows/nix_macos_apple_silicon.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nix_macos_apple_silicon.yml b/.github/workflows/nix_macos_apple_silicon.yml index 68ef2536d5a..b7ec7af7995 100644 --- a/.github/workflows/nix_macos_apple_silicon.yml +++ b/.github/workflows/nix_macos_apple_silicon.yml @@ -47,8 +47,8 @@ jobs: - name: test website build script run: | - sed -i '1aREPL_DEBUG=1' ./www/build.sh - cat ./www/build.sh + sed -i '1aREPL_DEBUG=1' www/build.sh + cat www/build.sh nix develop -c bash www/build.sh - name: wasm repl tests From b0e24c3cc1959c765af2200b7dc74e57df0dc916 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Fri, 18 Aug 2023 14:39:42 +0200 Subject: [PATCH 10/19] ls for debug Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --- .github/workflows/nix_macos_apple_silicon.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/nix_macos_apple_silicon.yml b/.github/workflows/nix_macos_apple_silicon.yml index b7ec7af7995..a94865b5929 100644 --- a/.github/workflows/nix_macos_apple_silicon.yml +++ b/.github/workflows/nix_macos_apple_silicon.yml @@ -47,6 +47,7 @@ jobs: - name: test website build script run: | + ls sed -i '1aREPL_DEBUG=1' www/build.sh cat www/build.sh nix develop -c bash www/build.sh From 58af5d1fd1069d45ba9a70d3f789826bdc337d67 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Fri, 18 Aug 2023 14:42:29 +0200 Subject: [PATCH 11/19] try different quotes Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --- .github/workflows/nix_macos_apple_silicon.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nix_macos_apple_silicon.yml b/.github/workflows/nix_macos_apple_silicon.yml index a94865b5929..140da42dc01 100644 --- a/.github/workflows/nix_macos_apple_silicon.yml +++ b/.github/workflows/nix_macos_apple_silicon.yml @@ -47,8 +47,8 @@ jobs: - name: test website build script run: | - ls - sed -i '1aREPL_DEBUG=1' www/build.sh + ls www + sed -i "1aREPL_DEBUG=1" www/build.sh cat www/build.sh nix develop -c bash www/build.sh From 746c7d921f792fb8eb79557707afb5d7417404c6 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Fri, 18 Aug 2023 15:00:25 +0200 Subject: [PATCH 12/19] sed is weird Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --- .github/workflows/nix_macos_apple_silicon.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nix_macos_apple_silicon.yml b/.github/workflows/nix_macos_apple_silicon.yml index 140da42dc01..bc51715d7a5 100644 --- a/.github/workflows/nix_macos_apple_silicon.yml +++ b/.github/workflows/nix_macos_apple_silicon.yml @@ -48,7 +48,7 @@ jobs: - name: test website build script run: | ls www - sed -i "1aREPL_DEBUG=1" www/build.sh + sed -i "" "1aREPL_DEBUG=1" www/build.sh cat www/build.sh nix develop -c bash www/build.sh From b0f72bab586deb6ec1ff9f90c7e98a6365dd344f Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Fri, 18 Aug 2023 15:54:15 +0200 Subject: [PATCH 13/19] 1a with space Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --- .github/workflows/nix_macos_apple_silicon.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nix_macos_apple_silicon.yml b/.github/workflows/nix_macos_apple_silicon.yml index bc51715d7a5..0b85e558282 100644 --- a/.github/workflows/nix_macos_apple_silicon.yml +++ b/.github/workflows/nix_macos_apple_silicon.yml @@ -48,7 +48,7 @@ jobs: - name: test website build script run: | ls www - sed -i "" "1aREPL_DEBUG=1" www/build.sh + sed -i "" "1a REPL_DEBUG=1" www/build.sh cat www/build.sh nix develop -c bash www/build.sh From 2c2978ae35484452669837cfebccb293abb0f43e Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Fri, 18 Aug 2023 15:55:13 +0200 Subject: [PATCH 14/19] try with slash Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --- .github/workflows/nix_macos_apple_silicon.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nix_macos_apple_silicon.yml b/.github/workflows/nix_macos_apple_silicon.yml index 0b85e558282..a5758938001 100644 --- a/.github/workflows/nix_macos_apple_silicon.yml +++ b/.github/workflows/nix_macos_apple_silicon.yml @@ -48,7 +48,7 @@ jobs: - name: test website build script run: | ls www - sed -i "" "1a REPL_DEBUG=1" www/build.sh + sed -i "" "1a\REPL_DEBUG=1" www/build.sh cat www/build.sh nix develop -c bash www/build.sh From 504ec74f6c2385746a57ee5b64fe8f40f11273b2 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Fri, 18 Aug 2023 15:56:15 +0200 Subject: [PATCH 15/19] trying single quotes Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --- .github/workflows/nix_macos_apple_silicon.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nix_macos_apple_silicon.yml b/.github/workflows/nix_macos_apple_silicon.yml index a5758938001..f9bc5b38dcd 100644 --- a/.github/workflows/nix_macos_apple_silicon.yml +++ b/.github/workflows/nix_macos_apple_silicon.yml @@ -48,7 +48,7 @@ jobs: - name: test website build script run: | ls www - sed -i "" "1a\REPL_DEBUG=1" www/build.sh + sed -i "" '1a\REPL_DEBUG=1' www/build.sh cat www/build.sh nix develop -c bash www/build.sh From 5ecb88bd8074377c4a977245f920c11620b909ac Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Fri, 18 Aug 2023 15:59:46 +0200 Subject: [PATCH 16/19] trying awk instead Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --- .github/workflows/nix_macos_apple_silicon.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nix_macos_apple_silicon.yml b/.github/workflows/nix_macos_apple_silicon.yml index f9bc5b38dcd..9dc99c817a2 100644 --- a/.github/workflows/nix_macos_apple_silicon.yml +++ b/.github/workflows/nix_macos_apple_silicon.yml @@ -48,7 +48,7 @@ jobs: - name: test website build script run: | ls www - sed -i "" '1a\REPL_DEBUG=1' www/build.sh + awk 'NR==1 {print; print "REPL_DEBUG=1"; next} 1' www/build.sh > tmpfile.txt && mv tmpfile.txt www/build.sh cat www/build.sh nix develop -c bash www/build.sh From 8acaf6811f21a88ddf3479061d4cb9d6d9308262 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Fri, 18 Aug 2023 16:23:52 +0200 Subject: [PATCH 17/19] add libcurl for wasm Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --- flake.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/flake.nix b/flake.nix index 4493103d8fe..091c11bb1c4 100644 --- a/flake.nix +++ b/flake.nix @@ -56,6 +56,7 @@ Foundation Metal Security + curl # for wasm-bindgen-cli libcurl (see ./ci/www-repl.sh) ]); # For debugging LLVM IR From b349b3308f1ae931fafc1a600e3c70fe7badbc18 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Fri, 18 Aug 2023 17:18:35 +0200 Subject: [PATCH 18/19] re-enable all steps Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --- .github/workflows/nix_macos_apple_silicon.yml | 38 +++++++++---------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/.github/workflows/nix_macos_apple_silicon.yml b/.github/workflows/nix_macos_apple_silicon.yml index 9dc99c817a2..441e0b376e5 100644 --- a/.github/workflows/nix_macos_apple_silicon.yml +++ b/.github/workflows/nix_macos_apple_silicon.yml @@ -20,36 +20,34 @@ jobs: with: clean: "true" - # - name: check formatting with rustfmt - # run: nix develop -c cargo fmt --all -- --check + - name: check formatting with rustfmt + run: nix develop -c cargo fmt --all -- --check - # - name: check code style with clippy - # run: nix develop -c cargo clippy --workspace --tests -- --deny warnings + - name: check code style with clippy + run: nix develop -c cargo clippy --workspace --tests -- --deny warnings - # - name: check code style with clippy --release - # run: cargo clippy --workspace --tests --release -- --deny warnings + - name: check code style with clippy --release + run: cargo clippy --workspace --tests --release -- --deny warnings - # - name: execute tests with --release - # run: nix develop -c cargo test --locked --release + - name: execute tests with --release + run: nix develop -c cargo test --locked --release - # - name: make a libapp.so for the next step - # run: nix develop -c cargo run -- gen-stub-lib examples/platform-switching/rocLovesRust.roc + - name: make a libapp.so for the next step + run: nix develop -c cargo run -- gen-stub-lib examples/platform-switching/rocLovesRust.roc - # - name: check that the platform`s produced dylib is loadable - # run: cd examples/platform-switching/rust-platform && nix develop -c cargo test --release --locked + - name: check that the platform`s produced dylib is loadable + run: cd examples/platform-switching/rust-platform && nix develop -c cargo test --release --locked - # - name: test launching the editor - # run: nix develop -c cargo test --release --locked editor_launch_test::launch -- --ignored # `--ignored` to run this test that is ignored for "normal" runs + - name: test launching the editor + run: nix develop -c cargo test --release --locked editor_launch_test::launch -- --ignored # `--ignored` to run this test that is ignored for "normal" runs - # # we run the llvm wasm tests only on this machine because it is fast and wasm should be cross-target - # - name: execute llvm wasm tests with --release - # run: nix develop -c cargo test-gen-llvm-wasm --locked --release + # we run the llvm wasm tests only on this machine because it is fast and wasm should be cross-target + - name: execute llvm wasm tests with --release + run: nix develop -c cargo test-gen-llvm-wasm --locked --release - - name: test website build script + - name: set env var and test website build script run: | - ls www awk 'NR==1 {print; print "REPL_DEBUG=1"; next} 1' www/build.sh > tmpfile.txt && mv tmpfile.txt www/build.sh - cat www/build.sh nix develop -c bash www/build.sh - name: wasm repl tests From 788c0fa00bff17fe80846abe1a2c6fe6f649f35f Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Fri, 18 Aug 2023 19:19:57 +0200 Subject: [PATCH 19/19] remove REPL_DEBUG=1 This env var may not be needed, trying to see how it goes without. --- .github/workflows/nix_macos_apple_silicon.yml | 1 - .github/workflows/ubuntu_x86_64.yml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/nix_macos_apple_silicon.yml b/.github/workflows/nix_macos_apple_silicon.yml index 441e0b376e5..065456ad7d2 100644 --- a/.github/workflows/nix_macos_apple_silicon.yml +++ b/.github/workflows/nix_macos_apple_silicon.yml @@ -47,7 +47,6 @@ jobs: - name: set env var and test website build script run: | - awk 'NR==1 {print; print "REPL_DEBUG=1"; next} 1' www/build.sh > tmpfile.txt && mv tmpfile.txt www/build.sh nix develop -c bash www/build.sh - name: wasm repl tests diff --git a/.github/workflows/ubuntu_x86_64.yml b/.github/workflows/ubuntu_x86_64.yml index a411f73d120..86a6eb80400 100644 --- a/.github/workflows/ubuntu_x86_64.yml +++ b/.github/workflows/ubuntu_x86_64.yml @@ -65,4 +65,4 @@ jobs: #TODO verify-no-git-changes - name: test website build script - run: REPL_DEBUG=1 bash www/build.sh + run: bash www/build.sh