Skip to content

Commit

Permalink
global: downgrade clang-format to 17
Browse files Browse the repository at this point in the history
  • Loading branch information
and3rson committed Apr 15, 2024
1 parent bb902c6 commit 7c2b139
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Run clang-format
run: |
apt update -y
apt install -y make clang-format-18
apt install -y make clang-format-17
make clang-format
cppcheck:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
IMAGE2CODE = ./sdk/tools/image2code/image2code.py
CPPCHECK ?= cppcheck
CLANG_FORMAT ?= $(shell command -v clang-format-18 2>/dev/null || echo clang-format)
CLANG_FORMAT ?= $(shell command -v clang-format-17 2>/dev/null || echo clang-format)

help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-16s\033[0m %s\n", $$1, $$2}'
Expand Down Expand Up @@ -49,7 +49,7 @@ check-docker: ## Run all checks in docker
docker build -t lilka-check -f - . <<EOF
FROM ubuntu:24.04
RUN apt-get update -y && \
apt-get install -y clang-format-18 cppcheck findutils grep make
apt-get install -y clang-format-17 cppcheck findutils grep make
EOF
docker run --rm -it -v $(PWD):/lilka -w /lilka lilka-check make check

Expand Down

0 comments on commit 7c2b139

Please sign in to comment.