Skip to content

Audio

Audio #595

Workflow file for this run

name: main
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -D warnings
jobs:
CI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Run rustfmt
run: cargo fmt --check
- name: Unit tests
run: |
sudo apt update -y;
sudo apt install -y libasound2-dev;
cargo test -- --include-ignored --nocapture
- name: Clippy
run: cargo clippy --all-features
deploy:
needs: CI
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
permissions:
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Trunk
run: |
rustup target add wasm32-unknown-unknown
cargo install trunk
trunk build --public-url 'https://pineman.github.io/fpt' --release fpt-egui/index.html
- name: Docs
run: |
cargo doc --no-deps
cp -r target/doc/* fpt-egui/dist
- uses: actions/upload-pages-artifact@v3
with:
path: fpt-egui/dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4