Only install binaries in static-checks task (#2717)

Also remove outdated version checks.
This commit is contained in:
Andrew Gaul
2025-08-30 16:34:26 +09:00
committed by GitHub
parent e55c37ddab
commit 4b46b7a811
2 changed files with 10 additions and 17 deletions

View File

@ -147,17 +147,10 @@ jobs:
make --jobs=$(sysctl -n hw.ncpu)
- name: Cppcheck
run: |
# specify the version range to run cppcheck (cppcheck version number is x.y or x.y.z)
if cppcheck --version | sed -e 's/\./ /g' | awk '{if (($2 * 1000 + $3) <= 2004) { exit(1) } }'; then
make cppcheck
fi
run: make cppcheck
- name: Shellcheck
run: |
if shellcheck --version | awk -F '[ .]' '/version:/ && ($2 * 1000 + $3 <= 7) { exit(1) }'; then
make shellcheck
fi
run: make shellcheck
- name: Test suite
run: |
@ -272,6 +265,13 @@ jobs:
run: |
.github/workflows/linux-ci-helper.sh fedora:42
- name: Install extra packages
run: |
dnf install -y \
clang-tools-extra \
cppcheck \
ShellCheck
- name: Build
run: |
./autogen.sh