Skip to content
Merged
Changes from all commits
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
13 changes: 7 additions & 6 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ on: [pull_request]

jobs:
clang-format:
# We need at least 20.04 to install clang-format-11.
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -16,10 +15,12 @@ jobs:
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt update -y
sudo apt install -y clang-format-11
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-11 100
sudo update-alternatives --install /usr/bin/git-clang-format git-clang-format /usr/bin/git-clang-format-11 100
sudo apt update
sudo apt install -y clang-format-18
sudo update-alternatives --install /usr/bin/clang-format \
clang-format /usr/bin/clang-format-18 100
sudo update-alternatives --install /usr/bin/git-clang-format \
git-clang-format /usr/bin/git-clang-format-18 100
- name: Run clang-format on changed files
run: |
set -x
Expand Down