From c9852ff2ca870840568e9eec6f96fbc55ef95529 Mon Sep 17 00:00:00 2001 From: jiacai2050 Date: Mon, 21 Oct 2024 11:14:25 +0800 Subject: [PATCH] add ci --- .github/workflows/ci.yml | 4 +++- Makefile | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a19ad98ccb..5e4b6cc4a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,11 +75,13 @@ jobs: rustup component add clippy rustup component add rustfmt cargo install --git https://github.com/DevinR528/cargo-sort --rev 55ec890 --locked + curl --proto '=https' --tlsv1.2 -LsSf https://github.com/korandoru/hawkeye/releases/download/v5.8.1/hawkeye-installer.sh | sh - name: Run Style Check run: | - make clippy make fmt make check-cargo-toml + make check-asf-header + make clippy unit-test: name: unit-test diff --git a/Makefile b/Makefile index 4480eede75..c58cfb5e75 100644 --- a/Makefile +++ b/Makefile @@ -85,6 +85,9 @@ fmt: check-cargo-toml: cd $(DIR); cargo sort --workspace --check +check-asf-header: + cd $(DIR); hawkeye check + udeps: cd $(DIR); cargo udeps --all-targets --all-features --workspace