From bc19f1d04c0e0056ec6838f04d69a2bf19600f0a Mon Sep 17 00:00:00 2001 From: jinlong Date: Tue, 24 Feb 2026 11:23:39 +0800 Subject: [PATCH] ci: add Rustfmt check workflow - Add GitHub Actions workflow for Rust formatting check - Workflow runs on push and pull request events - Uses stable Rust toolchain with rustfmt component - Checks code formatting using cargo fmt Signed-off-by: jinlong --- .github/workflows/format.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/format.yml diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 0000000..bfa6b57 --- /dev/null +++ b/.github/workflows/format.yml @@ -0,0 +1,21 @@ +name: Format Check + +on: + push: + pull_request: + +jobs: + rustfmt: + name: Rustfmt Check + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt + + - name: Check formatting + run: cargo fmt --all -- --check