2020-11-17 18:22:18 +00:00
|
|
|
name: Test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
2020-11-17 21:15:43 +00:00
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [windows-latest, ubuntu-latest, macos-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
2020-11-17 18:22:18 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-11-17 19:15:37 +00:00
|
|
|
- uses: Swatinem/rust-cache@v1
|
2020-11-17 21:15:43 +00:00
|
|
|
- run: sudo apt-get update; sudo apt-get install -y libspeechd-dev
|
|
|
|
if: ${{ runner.os == 'Linux' }}
|
2020-11-17 18:22:18 +00:00
|
|
|
- run: |
|
|
|
|
rustup update
|
2020-11-17 21:15:43 +00:00
|
|
|
cargo check --examples --release --all-features
|
2020-11-17 18:22:18 +00:00
|
|
|
|
|
|
|
build_web:
|
|
|
|
name: Build Web
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-11-17 19:15:37 +00:00
|
|
|
- uses: Swatinem/rust-cache@v1
|
2020-11-17 18:22:18 +00:00
|
|
|
- run: |
|
|
|
|
rustup update
|
|
|
|
rustup target add wasm32-unknown-unknown
|
|
|
|
cargo check --examples --release --target wasm32-unknown-unknown
|
|
|
|
|
|
|
|
build_ios:
|
|
|
|
name: Build iOS
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-11-17 19:15:37 +00:00
|
|
|
- uses: Swatinem/rust-cache@v1
|
2020-11-17 18:22:18 +00:00
|
|
|
- run: |
|
|
|
|
rustup update
|
|
|
|
rustup target add aarch64-apple-ios x86_64-apple-ios
|
|
|
|
cargo install cargo-lipo
|
|
|
|
cargo lipo --release
|