fix clippy #62 and test publish and package also #462
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: clippy | |
on: | |
push: | |
branches: [ main, release ] | |
pull_request: | |
branches: [ main, release ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
CARGO_INCREMENTAL: 0 # TODO: remove this when we cache the builds | |
jobs: | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Rust | |
run: rustup update | |
- name: build | |
run: cargo build --all --release --target x86_64-unknown-linux-gnu | |
- name: fmt check | |
run: cargo fmt --all -- --check | |
- name: check | |
run: cargo check --all --release | |
- name: clippy | |
run: cargo clippy --all |