mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-22 03:59:37 +00:00
Build Android example as part of CI.
This commit is contained in:
parent
8d6f40b1a5
commit
a01fd93502
21
.github/workflows/test.yml
vendored
21
.github/workflows/test.yml
vendored
|
@ -60,3 +60,24 @@ jobs:
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
args: --all-features --target wasm32-unknown-unknown
|
args: --all-features --target wasm32-unknown-unknown
|
||||||
|
|
||||||
|
check_android:
|
||||||
|
name: Check Android
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: Swatinem/rust-cache@v1
|
||||||
|
- uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
profile: minimal
|
||||||
|
toolchain: stable
|
||||||
|
components: rustfmt, clippy
|
||||||
|
override: true
|
||||||
|
- uses: actions-rs/install@v0.1
|
||||||
|
with:
|
||||||
|
crate: cargo-make
|
||||||
|
use-tool-cache: true
|
||||||
|
- uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: make
|
||||||
|
args: build-android-example
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
[tasks.run-android]
|
[tasks.build-android-example]
|
||||||
|
script = [
|
||||||
|
"cd examples/android",
|
||||||
|
"./gradlew assembleDebug",
|
||||||
|
]
|
||||||
|
|
||||||
|
[tasks.run-android-example]
|
||||||
script = [
|
script = [
|
||||||
"cd examples/android",
|
"cd examples/android",
|
||||||
"./gradlew runDebug",
|
"./gradlew runDebug",
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
use tts::*;
|
use tts::*;
|
||||||
|
|
||||||
|
// The `loop {}` below only simulates an app loop.
|
||||||
|
// Without it, the `TTS` instance gets dropped before callbacks can run.
|
||||||
|
#[allow(unreachable_code)]
|
||||||
fn run() -> Result<(), Error> {
|
fn run() -> Result<(), Error> {
|
||||||
let mut tts = TTS::default()?;
|
let mut tts = TTS::default()?;
|
||||||
let Features {
|
let Features {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user