Skip to content

Add support for Wasm plugins #521

Add support for Wasm plugins

Add support for Wasm plugins #521

Workflow file for this run

name: Rust
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
RUSTFLAGS: "-Dwarnings"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust toolchain
id: toolchain
uses: dtolnay/rust-toolchain@1.81.0
with:
components: clippy, rustfmt
- name: Check formatting
run: cargo fmt --check
- name: Install dependencies
run: sudo apt update && sudo apt install libopencv-dev libxinerama-dev libxcursor-dev xorg-dev libgl1 libgl1-mesa-dev libudev-dev clang libclang-dev libasound2-dev
- name: Cache cargo dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-rust-${{ steps.toolchain.outputs.cachekey }}
- name: Clippy
run: cargo clippy
- name: Clippy WebUI with visualizer enabled
run: cargo clippy -p rustmas-webui --features visualizer
- name: Test
run: cargo test -p lightfx