Skip to content

Fix workaround

Fix workaround #61

Workflow file for this run

on:
push:
workflow_dispatch:
jobs:
build-wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
sudo apt update
sudo apt install clang llvm gcc-multilib -y
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 .
- uses: actions/upload-artifact@v4
with:
path: dist