From fecd8cfc2cdc6b42464b70ec6d23abd7cfecd4a8 Mon Sep 17 00:00:00 2001 From: Bryan Gurney Date: Thu, 21 Mar 2024 14:17:43 -0400 Subject: [PATCH 1/2] Add fmt and build Makefile targets Signed-off-by: Bryan Gurney --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index b4b2607..a6c6a41 100644 --- a/Makefile +++ b/Makefile @@ -37,14 +37,24 @@ check-fedora-versions: test-compare-fedora-versions yamllint: yamllint --strict .github/workflows/*.yml +fmt: + cargo fmt + +fmt-ci: + cargo fmt --all -- --check audit: cargo audit -D warnings +build: + cargo build .PHONY: audit + build check-fedora-versions clippy + fmt + fmt-ci test-compare-fedora-versions yamllint From 16e4d1ca0511f34065736bc5c669b7d69463be47 Mon Sep 17 00:00:00 2001 From: Bryan Gurney Date: Thu, 12 Sep 2024 14:28:11 -0400 Subject: [PATCH 2/2] github actions: change lints to use fmt-ci target Signed-off-by: Bryan Gurney --- .github/workflows/ci.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ac7349..381c470 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,11 +59,7 @@ jobs: run: sudo apt-get install llvm-dev libclang-dev clang - name: Run cargo fmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check - + run: make -f Makefile fmt-ci - name: Run cargo clippy run: make -f Makefile clippy