From 385450ca370bce8b3bf252cd0999278928c623b3 Mon Sep 17 00:00:00 2001 From: Ramon Roche Date: Wed, 4 Feb 2026 21:40:31 +0100 Subject: [PATCH] CI: pin clang-tidy workflow to px4-dev:v1.17.0-beta1 container Pin the container image to v1.17.0-beta1 which includes clang-tidy 18 and all required clang dependencies pre-installed. This removes the need to install clang-tidy via apt on each workflow run. Signed-off-by: Ramon Roche --- .github/workflows/clang-tidy.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml index 0828e01f91..38763d3097 100644 --- a/.github/workflows/clang-tidy.yml +++ b/.github/workflows/clang-tidy.yml @@ -21,20 +21,11 @@ jobs: fetch-depth: 0 fetch-tags: true - - name: Determine PX4 version for container image - id: px4_version - run: | - echo "px4_version=$(git describe --tags --match 'v[0-9]*')" >> $GITHUB_OUTPUT - - name: Testing (clang-tidy) uses: addnab/docker-run-action@v3 with: - image: px4io/px4-dev:${{ steps.px4_version.outputs.px4_version }} + image: px4io/px4-dev:v1.17.0-beta1 options: -v ${{ github.workspace }}:/workspace run: | cd /workspace - apt install clang-tidy-18 -y - update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-18 100 - update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 100 - update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 100 make clang-tidy