name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y libspeechd-dev libclang-dev
- name: Check formatting
run: cargo fmt --all -- --check
- name: Clippy (all features)
run: cargo clippy --all-features -- -D warnings
- name: Build (all features)
run: cargo build --all-features
- name: Run tests
run: cargo test --all-features
- name: Build without default features (cloud only)
run: cargo build --no-default-features --features cloud
- name: Upload C header
uses: actions/upload-artifact@v4
with:
name: tts_wrapper_header
path: include/tts_wrapper.h