Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ jobs:
working-directory: plugins/native/nllb
run: cargo fmt -- --check

- name: Check formatting - Moonshine
working-directory: plugins/native/moonshine
run: cargo fmt -- --check

# Lint plugins that can build without pre-installed native libraries
lint-simple:
name: Lint (Simple Plugins)
Expand Down Expand Up @@ -163,6 +167,34 @@ jobs:
working-directory: plugins/native/nllb
run: cargo clippy -- -D warnings

# Lint Moonshine plugin (builds moonshine C++ core from source, needs ORT)
lint-moonshine:
name: Lint (Moonshine)
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v5

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake pkg-config libclang-dev

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.92.0"
components: clippy

- uses: Swatinem/rust-cache@v2
with:
workspaces: |
plugins/native/moonshine
cache-on-failure: true

- name: Clippy - Moonshine
working-directory: plugins/native/moonshine
run: cargo clippy -- -D warnings

# Lint sherpa-onnx based plugins (Kokoro, Piper, Matcha, SenseVoice)
lint-sherpa:
name: Lint (Sherpa-ONNX Plugins)
Expand Down
23 changes: 23 additions & 0 deletions plugins/native/moonshine/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions plugins/native/moonshine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tracing = "0.1"

[build-dependencies]
cc = "1.2"

[lints.clippy]
# Categories
pedantic = { level = "warn", priority = -1 }
Expand Down
Loading