Skip to content

Fix render layers

Fix render layers #389

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Setup | Ubuntu dependencies
run: sudo apt install libasound2-dev libudev-dev pkg-config
- name: Setup | Toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy,rustfmt
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Build | Clippy
run: cargo clippy -- -D warnings
- name: Build | Rustfmt
run: cargo fmt -- --check
check:
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Setup | Ubuntu dependencies
run: sudo apt install libasound2-dev libudev-dev pkg-config
- name: Setup | Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Build | Check (native)
run: cargo check
- name: Build | Check (wasm)
run: cargo check --target wasm32-unknown-unknown
test:
needs: [check]
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Setup | Ubuntu dependencies
run: sudo apt install libasound2-dev libudev-dev pkg-config
- name: Setup | Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- name: Setup | wasm-pack
uses: jetli/[email protected]
- name: Rust Cache
uses: Swatinem/[email protected]
- name: Build | Test (native)
run: cargo test
- name: Build | Test (wasm)
run: wasm-pack test --node