Skip to content

Commit

Permalink
Merge pull request #27 from bgurney-rh/makefile-targets
Browse files Browse the repository at this point in the history
Add standardized Makefile targets
  • Loading branch information
mulkieran authored Sep 13, 2024
2 parents 569c894 + 16e4d1c commit d0ffa3e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d0ffa3e

Please sign in to comment.