-
Notifications
You must be signed in to change notification settings - Fork 28
47 lines (35 loc) · 838 Bytes
/
ci_web.yaml
File metadata and controls
47 lines (35 loc) · 838 Bytes
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
40
41
42
43
44
45
46
47
name: ci_web
on:
pull_request:
workflow_dispatch:
push:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: rust-wasm-target
run: |
rustup target add wasm32-unknown-unknown
- name: apt-deps
run: |
sudo apt-get update
sudo apt-get install libasound2-dev libudev-dev
- name: wasm-opt
uses: sigoden/install-binary@v1
with:
repo: WebAssembly/binaryen
tag: version_123
name: wasm-opt
- name: cargo-deps
run: |
cargo install -f wasm-bindgen-cli --version 0.2.100
- uses: actions/checkout@v3
- name: build rmf_site_format
run: |
cd crates/rmf_site_format
cargo build
- name: build rmf_site_editor
run: scripts/build-web.sh