Skip to content

Commit 7ddc6a7

Browse files
committed
Only clang-format-20 on ubuntu 24
1 parent 05528ce commit 7ddc6a7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
libzmq: "4.3.5"
4545
libzmqbuild: "cmake"
4646
coverage: "-DCOVERAGE=ON"
47-
aptinstall: "lcov clang-format"
47+
aptinstall: "lcov"
4848
# clang
4949
- os: "ubuntu-22.04"
5050
cppstd: "17"
@@ -61,7 +61,7 @@ jobs:
6161
drafts: "OFF"
6262
libzmq: "4.3.5"
6363
libzmqbuild: false
64-
brewinstall: "zeromq clang-format"
64+
brewinstall: "zeromq"
6565
# windows
6666
#- os: "windows-2019"
6767
# cppstd: "14"
@@ -133,10 +133,11 @@ jobs:
133133
echo "LIBZMQ=${PWD}/libzmq-build" >> ${GITHUB_ENV}
134134
135135
- name: format
136-
if: ${{ startsWith(matrix.os, 'ubuntu') }}
136+
if: ${{ startsWith(matrix.os, 'ubuntu-24') }}
137137
run: |
138-
clang-format --version
139-
git ls-files | grep -E '\.(cpp|hpp)' | xargs clang-format --dry-run --Werror
138+
sudo apt install -y clang-format-20
139+
clang-format-20 --version
140+
git ls-files | grep -E '\.(cpp|hpp)' | xargs clang-format-20 --dry-run --Werror
140141
141142
- name: build
142143
env:

0 commit comments

Comments
 (0)