1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-11-17 16:29:37 +00:00
tts-rs/.github/workflows/test.yml

55 lines
1.5 KiB
YAML

name: Test
on:
push:
pull_request:
jobs:
check:
name: Check
strategy:
matrix:
os: [windows-latest, ubuntu-22.04, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- run: sudo apt-get update; sudo apt-get install -y libspeechd-dev
if: ${{ runner.os == 'Linux' }}
- run: |
rustup toolchain install stable
cargo fmt --all --check
cargo clippy --all-features
check_web:
name: Check Web
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: |
rustup toolchain install stable
rustup target add wasm32-unknown-unknown
cargo fmt --all --check
cargo clippy --all-features --target wasm32-unknown-unknown
check_android:
name: Check Android
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: |
rustup toolchain install stable
rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
cargo install -f cargo-apk
cargo apk build
check_web_example:
name: Check Web Example
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: |
rustup toolchain install stable
rustup target add wasm32-unknown-unknown
cargo install cargo-make
cargo make build-web-example