From 93cab5268d02a803e2b4610ef2eca0967edd20b9 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Mon, 19 Aug 2024 14:49:56 -0400 Subject: [PATCH] .github/build: Add step to build certain crates in WebAssembly --- .github/workflows/build.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index af099f7..c1b9bb7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,6 +52,19 @@ jobs: tests=$(nix build .#internalMatrix."$system".\"${{ matrix.nix }}\".attic-tests --no-link --print-out-paths -L) find "$tests/bin" -exec {} \; + - name: Build WebAssembly crates + if: runner.os == 'Linux' + run: | + # https://github.com/rust-lang/rust/issues/122357 + export RUST_MIN_STACK=16777216 + + pushd attic + nix develop .# --command -- cargo build --target wasm32-unknown-unknown --no-default-features -F chunking -F stream + popd + pushd token + nix develop .# --command -- cargo build --target wasm32-unknown-unknown + popd + # TODO: Just take a diff of the list of store paths, also abstract all of this out - name: Push build artifacts run: |