This repository was archived by the owner on Aug 6, 2026. It is now read-only.
Dproano/clean live logs #309
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: ["main"] | |
| jobs: | |
| rust-ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install system dependencies (libudev) | |
| run: sudo apt-get update && sudo apt-get install -y libudev-dev | |
| - name: Set toolchain env | |
| run: echo "toolchain=stable" >> $GITHUB_ENV | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| - name: Cache Cargo | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Cargo Format (fail on bad formatting) | |
| run: cargo fmt --all --check | |
| - name: Cargo Build (fails on errors, but not on warnings) | |
| run: cargo build --all-targets | |
| - name: Show Warnings in PR (does not stop PR merge) | |
| run: | | |
| echo "Compiler warnings:" | |
| cargo check --all-targets --message-format short | |
| continue-on-error: true |