Skip to content

Commit

Permalink
Use build script
Browse files Browse the repository at this point in the history
  • Loading branch information
noClaps committed Jan 4, 2025
1 parent c9573c6 commit f56d5ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/build-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ jobs:
export CC=clang
export CXX=clang++
- run: cargo install wasm-pack
- run: |
export AR="llvm-ar"
export CFLAGS_wasm32_unknown_unknown="-I$(pwd)/wasm-sysroot -Wbad-function-cast -Wcast-function-type -fno-builtin"
export RUSTFLAGS="-Zwasm-c-abi=spec"
wasm-pack build --release -d ./dist .
- run: ./build.sh
- uses: actions/upload-artifact@v4
with:
path: dist
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export AR="llvm-ar"
export CFLAGS_wasm32_unknown_unknown="-I$(pwd)/wasm-sysroot -Wbad-function-cast -Wcast-function-type -Wimplicit-function-declaration -Wincompatible-pointer-types -fno-builtin"
export RUSTFLAGS="-Zwasm-c-abi=spec"
wasm-pack build --release -d ./dist

0 comments on commit f56d5ce

Please sign in to comment.