Bump actions/checkout from 3 to 4 #20
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
name: CI | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup | Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | Ubuntu dependencies | |
run: sudo apt install libasound2-dev libudev-dev pkg-config | |
- name: Setup | Toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
components: clippy,rustfmt | |
- name: Build | Clippy | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: -- -D warnings | |
- name: Build | Rustfmt | |
run: cargo fmt --all -- --check | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup | Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | Ubuntu dependencies | |
run: sudo apt install libasound2-dev libudev-dev pkg-config | |
- name: Setup | Toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
- name: Build | Check | |
run: cargo check --all | |
test: | |
needs: [check] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup | Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | Ubuntu dependencies | |
run: sudo apt install libasound2-dev libudev-dev pkg-config | |
- name: Setup | Toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
- name: Build | Test | |
run: cargo test --all |