mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-23 03:39:38 +00:00
Use Matrix build.
This commit is contained in:
parent
b6ef11b60f
commit
2c73c75e00
35
.github/workflows/test.yml
vendored
35
.github/workflows/test.yml
vendored
|
@ -5,17 +5,20 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_linux:
|
build:
|
||||||
name: Build Linux
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [windows-latest, ubuntu-latest, macos-latest]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: Swatinem/rust-cache@v1
|
- uses: Swatinem/rust-cache@v1
|
||||||
|
- run: sudo apt-get update; sudo apt-get install -y libspeechd-dev
|
||||||
|
if: ${{ runner.os == 'Linux' }}
|
||||||
- run: |
|
- run: |
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y libspeechd-dev
|
|
||||||
rustup update
|
rustup update
|
||||||
cargo check --examples --release
|
cargo check --examples --release --all-features
|
||||||
|
|
||||||
build_web:
|
build_web:
|
||||||
name: Build Web
|
name: Build Web
|
||||||
|
@ -28,26 +31,6 @@ jobs:
|
||||||
rustup target add wasm32-unknown-unknown
|
rustup target add wasm32-unknown-unknown
|
||||||
cargo check --examples --release --target wasm32-unknown-unknown
|
cargo check --examples --release --target wasm32-unknown-unknown
|
||||||
|
|
||||||
build_windows:
|
|
||||||
name: Build Windows
|
|
||||||
runs-on: windows-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: Swatinem/rust-cache@v1
|
|
||||||
- run: |
|
|
||||||
rustup update
|
|
||||||
cargo check --examples --release --all-features
|
|
||||||
|
|
||||||
build_macos:
|
|
||||||
name: Build MacOS
|
|
||||||
runs-on: macos-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: Swatinem/rust-cache@v1
|
|
||||||
- run: |
|
|
||||||
rustup update
|
|
||||||
cargo check --examples --release
|
|
||||||
|
|
||||||
build_ios:
|
build_ios:
|
||||||
name: Build iOS
|
name: Build iOS
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
Loading…
Reference in New Issue
Block a user