2020-04-11 18:14:00 +00:00
|
|
|
name: Build
|
2020-04-11 16:53:36 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-08-18 15:34:08 +00:00
|
|
|
branches: [master]
|
2020-04-11 16:53:36 +00:00
|
|
|
pull_request:
|
2020-08-18 15:34:08 +00:00
|
|
|
branches: [master]
|
2020-04-11 16:53:36 +00:00
|
|
|
|
|
|
|
jobs:
|
2020-04-11 17:06:49 +00:00
|
|
|
build_linux:
|
|
|
|
name: Build Linux
|
2020-04-11 16:53:36 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-08-18 15:34:08 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y libspeechd-dev
|
2020-09-02 22:05:35 +00:00
|
|
|
rustup update
|
2020-08-18 15:34:08 +00:00
|
|
|
cargo build --release
|
2020-04-11 17:15:20 +00:00
|
|
|
|
|
|
|
build_windows:
|
|
|
|
name: Build Windows
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
2020-08-18 15:34:08 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: |
|
|
|
|
choco install -y llvm
|
2020-09-02 22:05:35 +00:00
|
|
|
rustup update
|
2020-08-18 15:34:08 +00:00
|
|
|
cargo build --release
|
2020-08-12 21:34:49 +00:00
|
|
|
|
|
|
|
build_macos:
|
|
|
|
name: Build MacOS
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
2020-08-18 15:34:08 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: |
|
2020-09-02 22:05:35 +00:00
|
|
|
rustup update
|
2020-08-18 15:34:08 +00:00
|
|
|
cargo build --release
|
2020-09-02 22:05:35 +00:00
|
|
|
|
|
|
|
build_ios:
|
|
|
|
name: Build iOS
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: |
|
|
|
|
rustup update
|
2020-08-18 20:59:27 +00:00
|
|
|
rustup target add aarch64-apple-ios x86_64-apple-ios
|
|
|
|
cargo install cargo-lipo
|
|
|
|
cargo lipo --release
|
2020-08-18 15:30:30 +00:00
|
|
|
|
|
|
|
build_android:
|
|
|
|
name: Build Android
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-08-18 15:34:08 +00:00
|
|
|
- uses: actions/checkout@v2
|
2020-08-18 15:48:04 +00:00
|
|
|
with:
|
|
|
|
lfs: true
|
2020-08-18 15:34:08 +00:00
|
|
|
- run: |
|
|
|
|
./gradlew assemble
|