Skip to content

Convert entire thing to Rust #56

Convert entire thing to Rust

Convert entire thing to Rust #56

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: rustup target add wasm32-wasip1-threads
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: |
mkdir dist
bun run build --target wasm32-wasip1-threads
echo "/** The type of bundled language used by the Highlight package */\nexport type BundledLanguage = string;" >> dist/index.d.ts
- uses: actions/upload-artifact@v4
with:
path: dist