1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-11-17 17:39:36 +00:00
tts-rs/.github/workflows/release.yml

56 lines
1.2 KiB
YAML
Raw Normal View History

2020-06-09 16:10:12 +00:00
name: Release
on:
push:
tags:
- "v*"
jobs:
build_linux:
name: Build Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
sudo apt-get update
sudo apt-get install -y libspeechd-dev
cargo build --release
rustup target add wasm32-unknown-unknown
cargo build --release --target wasm32-unknown-unknown
2020-06-09 16:10:12 +00:00
build_windows:
name: Build Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- run: |
choco install -y llvm
cargo build --release
publish_winrt_bindings:
name: Publish winrt_bindings
runs-on: windows-latest
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
steps:
- uses: actions/checkout@v2
- run: |
2020-06-17 23:01:09 +00:00
choco install -y llvm
cargo login $CARGO_TOKEN
cd winrt_bindings
cargo package
cargo publish
2020-06-09 16:10:12 +00:00
publish:
name: Publish
runs-on: ubuntu-latest
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
steps:
- uses: actions/checkout@v2
- run: |
sudo apt-get update
sudo apt-get install -y libspeechd-dev
cargo login $CARGO_TOKEN
cargo publish