Cargo Clippy #23
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 Clippy | |
| on: | |
| workflow_run: | |
| workflows: ["Cargo Check"] | |
| types: | |
| - completed | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| clippy: | |
| if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install OS dependencies | |
| run: sudo apt-get update && sudo apt-get install -y libfontconfig-dev | |
| - name: Install Clippy | |
| run: | |
| rustup toolchain install stable --component clippy | |
| - name: Set up Rust | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| override: true | |
| - name: Run clippy | |
| run: cargo clippy | |