From ffdae80e4ed1cd0395a579359d5d13a98afc1f31 Mon Sep 17 00:00:00 2001 From: Philippe Renon Date: Thu, 18 Apr 2024 23:06:05 +0200 Subject: [PATCH] ci: add opt-in check list by default makepkg is run with the --nocheck option this can be overriden per package by adding the package name to ./.ci/ci-check-list.txt --- .ci/ci-build.sh | 4 +++- .ci/ci-check-list.txt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .ci/ci-check-list.txt diff --git a/.ci/ci-build.sh b/.ci/ci-build.sh index 8982aae076926..a59b6de3ef130 100755 --- a/.ci/ci-build.sh +++ b/.ci/ci-build.sh @@ -133,7 +133,9 @@ for package in "${packages[@]}"; do execute 'Fetch keys' "$DIR/fetch-validpgpkeys.sh" cp -r ${package} B && cd B message 'Building binary' - makepkg-mingw --noconfirm --noprogressbar --nocheck --syncdeps --rmdeps --cleanbuild || failure "${status} failed" + declare -a makepkg_args=() + grep -qFx "${package}" "$DIR/ci-check-list.txt" || makepkg_args+=("--nocheck") + makepkg-mingw --noconfirm --noprogressbar --syncdeps --rmdeps --cleanbuild "${makepkg_args[@]}" || failure "${status} failed" cd - > /dev/null repo-add $PWD/artifacts/ci.db.tar.gz $PWD/B/*.pkg.tar.* pacman -Sy diff --git a/.ci/ci-check-list.txt b/.ci/ci-check-list.txt new file mode 100644 index 0000000000000..a3970ee0ebefb --- /dev/null +++ b/.ci/ci-check-list.txt @@ -0,0 +1 @@ +mingw-w64-rust