From 4cb57269c5906f5c328393ee580cef48cb963bbd Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 5 Oct 2024 15:29:24 +0800 Subject: [PATCH] github: run clang-tidy on fedora 41 since fedora 41 has received the llvm 41 packages. let's use it. Fixes scylladb/scylladb#18617 Signed-off-by: Kefu Chai --- .github/workflows/clang-tidy.yaml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/clang-tidy.yaml b/.github/workflows/clang-tidy.yaml index 02f9c3a2d690..5991d2bd982a 100644 --- a/.github/workflows/clang-tidy.yaml +++ b/.github/workflows/clang-tidy.yaml @@ -27,25 +27,18 @@ concurrency: cancel-in-progress: true jobs: - read-toolchain: - if: github.event_name == 'pull_request' || (github.event.issue.pull_request && startsWith(github.event.comment.body, '/clang-tidy')) - uses: ./.github/workflows/read-toolchain.yaml clang-tidy: name: Run clang-tidy - needs: - - read-toolchain runs-on: ubuntu-latest - container: ${{ needs.read-toolchain.outputs.image }} + container: fedora:41 steps: - - env: - IMAGE: ${{ needs.read-toolchain.image }} - run: | - echo ${{ needs.read-toolchain.image }} + - run: | + sudo dnf -y install git clang-tools-extra - uses: actions/checkout@v4 with: submodules: true - run: | - sudo dnf -y install clang-tools-extra + sudo ./install-dependencies.sh - name: Generate the building system run: | cmake \