Skip to content

Commit

Permalink
Update c++-code-formatting.yml to clang-format-18 (#1392)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf authored Aug 26, 2024
1 parent f7c9c2b commit 13f1fc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/c++-code-formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
name: clang-format
# Keep the clang-format version synced with the one installed by aliBuild,
# (see https://github.com/alisw/alidist/blob/master/clang.sh).
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- name: Checkout code
Expand All @@ -46,11 +46,11 @@ jobs:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt update
sudo apt install -y clang-format-15
sudo apt install -y clang-format-18
sudo update-alternatives --install /usr/bin/clang-format \
clang-format /usr/bin/clang-format-15 100
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-15 100
git-clang-format /usr/bin/git-clang-format-18 100
# We need to fetch the PR's head commit to base our cleanup commit on.
- name: Fetch PR branch
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
echo ~/bin >> "$GITHUB_PATH"
env:
ACTIONLINT_URL: |-
https://github.com/rhysd/actionlint/releases/download/v1.6.26/actionlint_1.6.26_linux_amd64.tar.gz
https://github.com/rhysd/actionlint/releases/download/v1.7.1/actionlint_1.7.1_linux_amd64.tar.gz
- name: Check GitHub workflows
run: |
Expand Down

0 comments on commit 13f1fc0

Please sign in to comment.