From 6d8ec5aee31f8eff0288e598372ab94397741a03 Mon Sep 17 00:00:00 2001 From: NRK Date: Fri, 29 Jul 2022 03:37:40 +0200 Subject: [PATCH] [ci]: fix failure (#348) * install unversioned `llvm` so that it pulls the latest one. * disable `uninitvar` check on cppcheck as it catches some false positives and gcc/clang/clang-tidy are good at catching uninitialized variables already. Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/348 Reviewed-by: explosion-mental --- .woodpecker/analysis.yml | 2 +- .woodpecker/build.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.woodpecker/analysis.yml b/.woodpecker/analysis.yml index 56cc7b1..c6fa796 100644 --- a/.woodpecker/analysis.yml +++ b/.woodpecker/analysis.yml @@ -14,7 +14,7 @@ pipeline: --force --quiet --inline-suppr --error-exitcode=1 \ --max-ctu-depth=8 -j"$(nproc)" \ $(make OPT_DEP_DEFAULT="$1" dump_cppflags) \ - --suppress=varFuncNullUB \ + --suppress=varFuncNullUB --suppress=uninitvar \ *.c } run_tidy() { diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index ebabf12..fdcf68c 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -10,7 +10,7 @@ pipeline: apk add --no-cache \ imlib2 imlib2-dev xorgproto \ libxft libxft-dev libexif libexif-dev giflib giflib-dev libwebp libwebp-dev \ - gcc clang llvm12 llvm12-dev build-base wget ca-certificates >/dev/null + gcc clang llvm llvm-dev build-base wget ca-certificates >/dev/null wget "https://github.com/TinyCC/tinycc/archive/$TCC_SHA.tar.gz" >/dev/null tar xzf "$TCC_SHA.tar.gz" >/dev/null ( cd "tinycc-$TCC_SHA" && ./configure --config-musl && make -s -j"$(nproc)" && make install; ) >/dev/null