Skip to content

Commit

Permalink
Merge pull request #18087 from redpanda-data/dotnwat-patch-3
Browse files Browse the repository at this point in the history
gh: fix lint-cpp for ubuntu noble
  • Loading branch information
dotnwat authored Apr 26, 2024
2 parents fbd335c + c3c75f4 commit 9ee6d8c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/lint-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,9 @@ 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

0 comments on commit 9ee6d8c

Please sign in to comment.