mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-23 02:59: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:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
check:
|
||||||
name: Build
|
name: Check
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [windows-latest, ubuntu-latest, macos-latest]
|
os: [windows-latest, ubuntu-latest, macos-latest]
|
||||||
|
@ -16,9 +16,15 @@ jobs:
|
||||||
- uses: Swatinem/rust-cache@v1
|
- uses: Swatinem/rust-cache@v1
|
||||||
- run: sudo apt-get update; sudo apt-get install -y libspeechd-dev
|
- run: sudo apt-get update; sudo apt-get install -y libspeechd-dev
|
||||||
if: ${{ runner.os == 'Linux' }}
|
if: ${{ runner.os == 'Linux' }}
|
||||||
- run: |
|
- uses: actions-rs/toolchain@v1
|
||||||
rustup update
|
with:
|
||||||
cargo check --examples --release --all-features
|
profile: minimal
|
||||||
|
toolchain: stable
|
||||||
|
override: true
|
||||||
|
- uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: check
|
||||||
|
args: --all-features --examples
|
||||||
|
|
||||||
build_web:
|
build_web:
|
||||||
name: Build Web
|
name: Build Web
|
||||||
|
@ -26,10 +32,16 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: Swatinem/rust-cache@v1
|
- uses: Swatinem/rust-cache@v1
|
||||||
- run: |
|
- uses: actions-rs/toolchain@v1
|
||||||
rustup update
|
with:
|
||||||
rustup target add wasm32-unknown-unknown
|
target: wasm32-unknown-unknown
|
||||||
cargo check --examples --release --target wasm32-unknown-unknown
|
profile: minimal
|
||||||
|
toolchain: stable
|
||||||
|
override: true
|
||||||
|
- uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: check
|
||||||
|
args: --all-features --examples
|
||||||
|
|
||||||
build_ios:
|
build_ios:
|
||||||
name: Build iOS
|
name: Build iOS
|
||||||
|
@ -37,8 +49,15 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: Swatinem/rust-cache@v1
|
- uses: Swatinem/rust-cache@v1
|
||||||
- run: |
|
- uses: actions-rs/toolchain@v1
|
||||||
rustup update
|
with:
|
||||||
rustup target add aarch64-apple-ios x86_64-apple-ios
|
target: aarch64-apple-ios x86_64-apple-ios
|
||||||
cargo install cargo-lipo
|
profile: minimal
|
||||||
cargo lipo --release
|
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