bevy_tts/.github/workflows/test.yml

51 lines
1.4 KiB
YAML
Raw Normal View History

2020-12-03 21:44:41 +00:00
name: Test
on:
push:
pull_request:
jobs:
check:
name: Check
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v1
2020-12-03 21:54:14 +00:00
- run: |
sudo apt-get update
sudo apt-get install -y libspeechd-dev pkg-config libx11-dev libasound2-dev libudev-dev
2020-12-03 21:44:41 +00:00
if: ${{ runner.os == 'Linux' }}
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
override: true
- uses: actions-rs/cargo@v1
with:
command: check
args: --all-features --examples
if: ${{ runner.os != 'Linux' }}
- uses: actions-rs/cargo@v1
with:
command: check
args: --no-default-features --examples
if: ${{ runner.os == 'Linux' }}
2020-12-03 21:44:41 +00:00
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all --check
2020-12-03 21:44:41 +00:00
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
if: ${{ runner.os != 'Linux' }}
2022-03-10 23:13:59 +00:00
- uses: actions-rs/clippy-check@v1
with:
2022-03-10 23:13:59 +00:00
token: ${{ secrets.GITHUB_TOKEN }}
args: --no-default-features
if: ${{ runner.os == 'Linux' }}