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

53 lines
1.4 KiB
YAML
Raw Normal View History

2020-11-17 18:22:18 +00:00
name: Test
on:
push:
pull_request:
jobs:
check:
name: Check
2020-11-17 21:15:43 +00:00
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
- 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' }}
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check
args: --all-features --examples
2020-11-17 22:16:14 +00:00
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
2020-11-17 18:22:18 +00:00
build_web:
name: Build Web
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/toolchain@v1
with:
target: wasm32-unknown-unknown
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check
2020-11-17 22:06:18 +00:00
args: --all-features --examples --target wasm32-unknown-unknown
2020-11-17 22:16:14 +00:00
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --target wasm32-unknown-unknown