Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Fix wasm ci
Browse files Browse the repository at this point in the history
  • Loading branch information
zemse committed Dec 18, 2023
1 parent 43db3bc commit 75c47a7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rust-src
- uses: jetli/[email protected]
with:
version: 'latest'
Expand Down
12 changes: 10 additions & 2 deletions wasm_build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
RUSTFLAGS='-C target-feature=+atomics,+bulk-memory,+mutable-globals' \
if RUSTFLAGS='-C target-feature=+atomics,+bulk-memory,+mutable-globals' \
wasm-pack build --target web --no-default-features --features \
wasm -Z build-std=panic_abort,std && du -h pkg/proof_of_exploit_bg.wasm
wasm -Z build-std=panic_abort,std;
then
echo "\nBuild success!"
du -h pkg/proof_of_exploit_bg.wasm
else
echo "\nBuild failed because of above error"
exit 1
fi


if ! [ -z "$1" ]
then
Expand Down

0 comments on commit 75c47a7

Please sign in to comment.