build: bump clang tools to 20 (#7573)

* build: bump to clang-format-20

* build: bump to clang-tidy-20

* chore: revert edc59ba5d8
This commit is contained in:
Yat Ho
2025-12-02 13:18:02 +08:00
committed by GitHub
parent 05aef3e787
commit 9dd9aab902
55 changed files with 718 additions and 601 deletions

View File

@@ -73,7 +73,7 @@ jobs:
cat "$GITHUB_OUTPUT"
code-style:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [ what-to-make ]
if: ${{ needs.what-to-make.outputs.test-style == 'true' }}
steps:
@@ -90,8 +90,9 @@ jobs:
run: |
set -ex
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main"
sudo apt-get install -y clang-format-17
sudo add-apt-repository "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-20 main"
sudo apt update
sudo apt install -y clang-format-20
- name: Get NPM
uses: actions/setup-node@v4
with:
@@ -233,11 +234,13 @@ jobs:
- name: Get Dependencies
run: |
set -ex
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-20 main"
sudo apt update
sudo apt install -y --no-install-recommends \
ca-certificates \
clang \
clang-tidy \
clang-tidy-20 \
cmake \
gettext \
libcurl4-openssl-dev \
@@ -249,10 +252,6 @@ jobs:
libpsl-dev \
libssl-dev \
ninja-build
- name: Get NPM
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Get Source
uses: actions/checkout@v4
with:
@@ -280,7 +279,7 @@ jobs:
if grep 'warning:' makelog; then exit 1; fi
clang-tidy-libtransmission-win32:
runs-on: windows-2022
runs-on: windows-2025
needs: [ what-to-make ]
if: ${{ needs.what-to-make.outputs.make-core == 'true' || needs.what-to-make.outputs.make-tests == 'true' }}
steps: