Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
libzmq: "4.3.5"
libzmqbuild: "cmake"
coverage: "-DCOVERAGE=ON"
aptinstall: "lcov clang-format"
aptinstall: "lcov"
# clang
- os: "ubuntu-22.04"
cppstd: "17"
Expand All @@ -61,7 +61,7 @@ jobs:
drafts: "OFF"
libzmq: "4.3.5"
libzmqbuild: false
brewinstall: "zeromq clang-format"
brewinstall: "zeromq"
# windows
#- os: "windows-2019"
# cppstd: "14"
Expand Down Expand Up @@ -133,9 +133,11 @@ jobs:
echo "LIBZMQ=${PWD}/libzmq-build" >> ${GITHUB_ENV}

- name: format
if: ${{ startsWith(matrix.os, 'ubuntu-24') }}
run: |
clang-format --version
git ls-files | grep -E '\.(cpp|hpp)' | xargs clang-format --dry-run --Werror
sudo apt install -y clang-format-20
clang-format-20 --version
git ls-files | grep -E '\.(cpp|hpp)' | xargs clang-format-20 --dry-run --Werror
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is running clang-format 20 only on Ubuntu okay?

Not sure how to solve the fact that people might have different versions installed..


- name: build
env:
Expand Down