Skip to content

[ts-sdk] Make react sdk run on browser #332

[ts-sdk] Make react sdk run on browser

[ts-sdk] Make react sdk run on browser #332

Workflow file for this run

name: wasm build
on:
push:
branches: [master]
pull_request:
types: [opened, synchronize]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
jobs:
check:
runs-on: ubuntu-24.04
steps:
- name: 🛠 Install system dependencies
run: |
set -e
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
sudo apt-get update -y -qq
sudo apt-get install -y mesa-vulkan-drivers libegl1-mesa-dev libgl1-mesa-dri libxcb-xfixes0-dev ffmpeg libavcodec-dev libavformat-dev libavfilter-dev libavdevice-dev ttf-mscorefonts-installer libopus-dev
fc-cache -f
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: 🔧 Install the rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: 📥 Checkout repo
uses: actions/checkout@v4
- name: 📁 Rust cache
uses: Swatinem/rust-cache@v2
- name: 🛠 wasm-pack build
run: wasm-pack build --target web compositor_web