use let chains where possible #36
This file contains hidden or 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: action | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - name: install deps | |
| run: | | |
| sudo apt-get update -y | |
| sudo apt-get install libudev-dev libseat-dev libdisplay-info-dev libgbm-dev libinput-dev libxkbcommon-dev | |
| - name: build | |
| run: cargo clippy --workspace -- -D warnings | |
| - name: test | |
| run: cargo test --workspace | |
| fmt: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt | |
| - run: cargo fmt --all -- --check |