Merge pull request #542 from squidowl/exclude-channels #1073
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
name: Build | |
on: | |
pull_request: | |
paths: | |
- '**.rs' | |
- '**/Cargo.toml' | |
- 'Cargo.lock' | |
push: | |
branches: | |
- main | |
paths: | |
- '**.rs' | |
- '**/Cargo.toml' | |
- 'Cargo.lock' | |
merge_group: | |
paths: | |
- '**.rs' | |
- '**/Cargo.toml' | |
- 'Cargo.lock' | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install deps | |
run: | | |
sudo apt update | |
sudo apt install \ | |
build-essential \ | |
git \ | |
pkg-config \ | |
libdbus-1-dev \ | |
libudev-dev \ | |
libxkbcommon-dev \ | |
libfontconfig1-dev \ | |
libasound2-dev | |
- name: Check | |
run: cargo check | |
- name: Clippy | |
run: cargo clippy --workspace --all-targets -- -D warnings | |
- name: Test | |
run: cargo test --workspace --all-targets |