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 <mrpollo@gmail.com>
This commit is contained in:
Ramon Roche
2026-02-04 21:40:31 +01:00
parent 23c9af20da
commit 385450ca37
+1 -10
View File
@@ -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