From 37cfb6a8bdab2a8768e2dd2ee48ba36fc6dde75a Mon Sep 17 00:00:00 2001 From: Mehdi Chinoune Date: Fri, 4 Mar 2022 22:18:55 +0100 Subject: [PATCH] Skip packages using `mingw_arch` in PKGBUILD --- .ci/ci-build.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.ci/ci-build.sh b/.ci/ci-build.sh index 17602f5a67..7b2477ce1f 100644 --- a/.ci/ci-build.sh +++ b/.ci/ci-build.sh @@ -21,6 +21,21 @@ pacman --noconfirm -Fy # Detect list_packages || failure 'Could not detect changed files' message 'Processing changes' + +declare -a skipped_packages=() +for package in "${packages[@]}"; do + cd "${package}" + . PKGBUILD + if [[ ! " ${mingw_arch[*]} " =~ " ${MSYSTEM,,} " ]]; then + skipped_packages+=("${package}") + fi + cd - > /dev/null +done + +for package in "${skipped_packages}"; do + packages=(${packages[@]/"${package}"}) +done + test -z "${packages}" && success 'No changes in package recipes' # Build