Skip to content

Commit

Permalink
gh: backport of fix lint-cpp for ubuntu noble
Browse files Browse the repository at this point in the history
Manual backport of PR: #18087.
Looks like `lint-cpp.yml` did not exist yet in `v23.2.x`.
I have made the same changes to the appropriate command in `lint.yml`.
  • Loading branch information
WillemKauf committed May 1, 2024
1 parent c7a6390 commit aa7fcb9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,10 @@ jobs:
- name: Run clang-format
run: |
docker run \
-v $PWD:/redpanda ubuntu \
-v $PWD:/redpanda ubuntu:noble \
bash -c "cd /redpanda && \
apt update && \
apt install -y wget git lsb-release wget software-properties-common gnupg && \
wget https://apt.llvm.org/llvm.sh && \
chmod +x llvm.sh && \
./llvm.sh 16 && \
apt-get install -y clang-format-16 && \
apt install -y git clang-format-16 && \
find . -type f -regex '.*\.\(cpp\|h\|hpp\|cc\|proto\|java\)' | xargs -n1 clang-format-16 -i -style=file -fallback-style=none"
git diff --exit-code
Expand Down

0 comments on commit aa7fcb9

Please sign in to comment.