PGN Import and Visualization #300
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: Cargo Build & Test | |
| on: | |
| pull_request: | |
| workflow_call: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| lint: | |
| name: Rust project - latest | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| name: Checkout project | |
| - uses: dtolnay/rust-toolchain@stable | |
| name: Install the Rust toolchain | |
| - name: Install ALSA development libraries | |
| run: sudo apt-get update && sudo apt-get install -y libasound2-dev | |
| - uses: Swatinem/rust-cache@v2 | |
| name: Use cached dependencies and artifacts | |
| - name: Check formatting | |
| run: cargo fmt --check | |
| - name: Check linting | |
| run: cargo clippy -- -D warnings |