Skip to content

ci: change deploy event #35

ci: change deploy event

ci: change deploy event #35

Workflow file for this run

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