2020-11-17 18:22:18 +00:00
|
|
|
name: Test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
2024-02-09 17:29:00 +00:00
|
|
|
check_formatting:
|
|
|
|
name: Check Formatting
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- run: |
|
|
|
|
rustup toolchain install stable
|
|
|
|
cargo fmt --all --check
|
|
|
|
cd examples/web
|
|
|
|
cargo fmt --all --check
|
|
|
|
|
2020-11-17 21:50:22 +00:00
|
|
|
check:
|
|
|
|
name: Check
|
2020-11-17 21:15:43 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-09-07 17:33:45 +00:00
|
|
|
os: [windows-latest, ubuntu-22.04, macos-latest]
|
2020-11-17 21:15:43 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
2020-11-17 18:22:18 +00:00
|
|
|
steps:
|
2024-02-09 17:03:41 +00:00
|
|
|
- uses: actions/checkout@v4
|
2020-11-17 21:15:43 +00:00
|
|
|
- run: sudo apt-get update; sudo apt-get install -y libspeechd-dev
|
|
|
|
if: ${{ runner.os == 'Linux' }}
|
2022-11-22 18:36:00 +00:00
|
|
|
- run: |
|
|
|
|
rustup toolchain install stable
|
2024-02-09 17:29:00 +00:00
|
|
|
cargo clippy --all-targets
|
2020-11-17 18:22:18 +00:00
|
|
|
|
2020-11-17 22:42:44 +00:00
|
|
|
check_web:
|
|
|
|
name: Check Web
|
2022-09-07 17:33:45 +00:00
|
|
|
runs-on: ubuntu-22.04
|
2020-11-17 18:22:18 +00:00
|
|
|
steps:
|
2024-02-09 17:03:41 +00:00
|
|
|
- uses: actions/checkout@v4
|
2022-11-22 18:36:00 +00:00
|
|
|
- run: |
|
2022-11-22 18:44:43 +00:00
|
|
|
rustup target add wasm32-unknown-unknown
|
2022-11-22 21:16:18 +00:00
|
|
|
rustup toolchain install stable
|
2024-02-09 17:29:00 +00:00
|
|
|
cargo clippy --all-targets --target wasm32-unknown-unknown
|
2020-12-30 18:28:07 +00:00
|
|
|
|
|
|
|
check_android:
|
|
|
|
name: Check Android
|
2022-09-07 17:33:45 +00:00
|
|
|
runs-on: ubuntu-22.04
|
2020-12-30 18:28:07 +00:00
|
|
|
steps:
|
2024-02-09 17:03:41 +00:00
|
|
|
- uses: actions/checkout@v4
|
2022-11-22 18:27:40 +00:00
|
|
|
- run: |
|
2024-02-09 17:29:00 +00:00
|
|
|
rustup target add aarch64-linux-android
|
2022-11-22 18:27:40 +00:00
|
|
|
rustup toolchain install stable
|
2024-02-09 17:29:00 +00:00
|
|
|
cargo clippy --all-targets --target aarch64-linux-android
|
2021-04-03 16:50:11 +00:00
|
|
|
|
|
|
|
check_web_example:
|
|
|
|
name: Check Web Example
|
2022-09-07 17:33:45 +00:00
|
|
|
runs-on: ubuntu-22.04
|
2021-04-03 16:50:11 +00:00
|
|
|
steps:
|
2024-02-09 17:03:41 +00:00
|
|
|
- uses: actions/checkout@v4
|
2022-11-22 18:36:00 +00:00
|
|
|
- run: |
|
2022-11-22 18:44:43 +00:00
|
|
|
rustup target add wasm32-unknown-unknown
|
2022-11-22 21:16:18 +00:00
|
|
|
rustup toolchain install stable
|
|
|
|
cd examples/web
|
|
|
|
cargo build --target wasm32-unknown-unknown
|