We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a163efe commit 5afa0aeCopy full SHA for 5afa0ae
.github/workflows/misc-tests.yaml
@@ -128,8 +128,16 @@ jobs:
128
- uses: actions/checkout@v2
129
- name: Install clang-format
130
run: |
131
+ sudo apt-get update
132
sudo apt-get install -y clang-format-17
133
+ sudo update-alternatives --display clang-format
134
+ # Register alternatives
135
+ sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-17 100
136
+ sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-18 50
137
+ # Set preferred version
138
sudo update-alternatives --set clang-format /usr/bin/clang-format-17
139
+ # Verify the version
140
+ clang-format --version
141
- name: Check formatting
142
143
clang-format --version
0 commit comments