ci: change deploy event #35
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: Lint(Cargo) | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["*"] | |
workflow_dispatch: | |
# Only the latest push job is executed when successive pushes are performed. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
lint: | |
strategy: | |
matrix: | |
platform: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4.2.2 | |
- name: Rust cache | |
uses: Swatinem/rust-cache@v2.7.5 | |
with: | |
prefix-key: cargo-debug-${{ matrix.platform }} | |
- name: Check format | |
run: cargo fmt --all -- --check | |
- name: Lint Check | |
run: cargo clippy --workspace -- -D warnings | |
# The action only supports Linux. | |
- name: Check license, dependencies | |
if: runner.os == 'Linux' | |
uses: EmbarkStudios/cargo-deny-action@v2.0.4 |