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

Commit

Permalink
Another try
Browse files Browse the repository at this point in the history
  • Loading branch information
zemse committed Dec 18, 2023
1 parent 876879d commit 43db3bc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: jetli/[email protected]
with:
version: 'latest'
Expand All @@ -29,7 +30,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
Expand Down
20 changes: 12 additions & 8 deletions wasm_build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
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
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

du -h pkg/proof_of_exploit_bg.wasm

rm -rf /Users/sohamzemse/Workspace/opensource/personal/proof-of-exploit-stuff/frontend/pox-frontend/wasm
mkdir /Users/sohamzemse/Workspace/opensource/personal/proof-of-exploit-stuff/frontend/pox-frontend/wasm
cp -r pkg/. /Users/sohamzemse/Workspace/opensource/personal/proof-of-exploit-stuff/frontend/pox-frontend/wasm/
rm /Users/sohamzemse/Workspace/opensource/personal/proof-of-exploit-stuff/frontend/pox-frontend/wasm/.gitignore
rm /Users/sohamzemse/Workspace/opensource/personal/proof-of-exploit-stuff/frontend/pox-frontend/wasm/README.md
if ! [ -z "$1" ]
then
rm -rf $1/wasm
mkdir $1/wasm
cp -r pkg/. $1/wasm/
rm $1/wasm/.gitignore
rm $1/wasm/README.md
echo "Updated the package at $1/wasm"
fi

0 comments on commit 43db3bc

Please sign in to comment.