mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-08 06:29:23 +00:00
clang-format.yml: Bump to clang-format 18
This commit is contained in:
parent
137a578087
commit
37d0184781
1 changed files with 4 additions and 4 deletions
8
.github/workflows/clang-format.yml
vendored
8
.github/workflows/clang-format.yml
vendored
|
@ -46,17 +46,17 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||
|
||||
- name: Install clang-format 17
|
||||
- name: Install clang-format 18
|
||||
run: |-
|
||||
set -x
|
||||
source /etc/os-release
|
||||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
||||
sudo add-apt-repository "deb https://apt.llvm.org/${UBUNTU_CODENAME}/ llvm-toolchain-${UBUNTU_CODENAME}-17 main"
|
||||
sudo add-apt-repository "deb https://apt.llvm.org/${UBUNTU_CODENAME}/ llvm-toolchain-${UBUNTU_CODENAME}-18 main"
|
||||
sudo apt-get update # due to new repository
|
||||
sudo apt-get install --yes --no-install-recommends -V \
|
||||
clang-format-17 \
|
||||
clang-format-18 \
|
||||
moreutils
|
||||
echo /usr/lib/llvm-17/bin >>"${GITHUB_PATH}"
|
||||
echo /usr/lib/llvm-18/bin >>"${GITHUB_PATH}"
|
||||
|
||||
- name: Run clang-format
|
||||
run: |
|
||||
|
|
Loading…
Add table
Reference in a new issue