Skip to content

Commit 5afa0ae

Browse files
committed
Poke GitHub runners
1 parent a163efe commit 5afa0ae

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/misc-tests.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,16 @@ jobs:
128128
- uses: actions/checkout@v2
129129
- name: Install clang-format
130130
run: |
131+
sudo apt-get update
131132
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
132138
sudo update-alternatives --set clang-format /usr/bin/clang-format-17
139+
# Verify the version
140+
clang-format --version
133141
- name: Check formatting
134142
run: |
135143
clang-format --version

0 commit comments

Comments
 (0)