-
Notifications
You must be signed in to change notification settings - Fork 17
40 lines (29 loc) · 1.26 KB
/
wasm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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