mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-22 23:19:37 +00:00
Use Rust actions to (hopefully) speed things up.
This commit is contained in:
parent
2c73c75e00
commit
3157162192
47
.github/workflows/test.yml
vendored
47
.github/workflows/test.yml
vendored
|
@ -5,8 +5,8 @@ on:
|
|||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
check:
|
||||
name: Check
|
||||
strategy:
|
||||
matrix:
|
||||
os: [windows-latest, ubuntu-latest, macos-latest]
|
||||
|
@ -16,9 +16,15 @@ jobs:
|
|||
- uses: Swatinem/rust-cache@v1
|
||||
- run: sudo apt-get update; sudo apt-get install -y libspeechd-dev
|
||||
if: ${{ runner.os == 'Linux' }}
|
||||
- run: |
|
||||
rustup update
|
||||
cargo check --examples --release --all-features
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
override: true
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: check
|
||||
args: --all-features --examples
|
||||
|
||||
build_web:
|
||||
name: Build Web
|
||||
|
@ -26,10 +32,16 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- run: |
|
||||
rustup update
|
||||
rustup target add wasm32-unknown-unknown
|
||||
cargo check --examples --release --target wasm32-unknown-unknown
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
target: wasm32-unknown-unknown
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
override: true
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: check
|
||||
args: --all-features --examples
|
||||
|
||||
build_ios:
|
||||
name: Build iOS
|
||||
|
@ -37,8 +49,15 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- run: |
|
||||
rustup update
|
||||
rustup target add aarch64-apple-ios x86_64-apple-ios
|
||||
cargo install cargo-lipo
|
||||
cargo lipo --release
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
target: aarch64-apple-ios x86_64-apple-ios
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
- uses: actions-rs/install@v0.1
|
||||
with:
|
||||
crate: cargo-lipo
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: lipo
|
||||
args: --all-features --examples
|
||||
|
|
Loading…
Reference in New Issue
Block a user