1
0
Fork 0
mirror of https://github.com/zhaofengli/attic.git synced 2024-12-14 11:57:30 +00:00

.github/build: Add step to build certain crates in WebAssembly

This commit is contained in:
Zhaofeng Li 2024-08-19 14:49:56 -04:00
parent c7b1f71954
commit 93cab5268d

View file

@ -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: |