Skip to content

Commit

Permalink
Use wasm32-wasip1-threads
Browse files Browse the repository at this point in the history
  • Loading branch information
noClaps committed Jan 3, 2025
1 parent 38a2b8e commit b543c52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ jobs:
sudo apt install clang llvm gcc-multilib -y
export CC=clang
export CXX=clang++
- run: rustup target add wasm32-wasip1
- run: rustup target add wasm32-wasip1-threads
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: |
mkdir dist
bun run build --target wasm32-wasip1
ls -al .
bun run build --target wasm32-wasip1-threads
- uses: actions/upload-artifact@v4
with:
path: dist
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,10 @@
"package.json"
],
"napi": {
"binaryName": "highlight",
"targets": [
"wasm32-wasip1"
]
"binaryName": "highlight"
},
"scripts": {
"build": "napi build --platform --esm --release --strip -o ./dist",
"build": "napi build --platform --release --strip -o ./dist",
"bump": "bunx changelogen --bump && bun bump-version.ts"
},
"type": "module"
Expand Down

0 comments on commit b543c52

Please sign in to comment.