Add GH action to build and release xsynth-render #210
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [pull_request] | |
name: Lints | |
jobs: | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
name: Initialize Cargo | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
components: rustfmt, clippy | |
- uses: Swatinem/rust-cache@v2 | |
name: Cargo Cache | |
- uses: actions-rs/cargo@v1 | |
name: Check code formatting | |
with: | |
command: fmt | |
args: --all -- --check | |
- name: Install dependencies | |
run: sudo apt-get install -y libasound2-dev portaudio19-dev build-essential libpulse-dev libdbus-1-dev | |
- uses: actions-rs/cargo@v1 | |
name: Check code with clippy | |
with: | |
command: clippy | |
args: --workspace --all-targets -- --deny "warnings" | |
- uses: actions-rs/cargo@v1 | |
name: Check code | |
with: | |
command: check | |
args: --workspace --all-targets |