Optimize APK update checks and CI builds
Build Alpine Packages / build-and-publish (v3.24, 3.24) (push) Failing after 2h18m12s

This commit is contained in:
Joachim Schlöffel
2026-08-24 03:52:58 +02:00
parent 9b9473f497
commit 526e7ae7c9
7 changed files with 262 additions and 169 deletions
+27 -1
View File
@@ -106,7 +106,8 @@ apk_package_apk_names() {
local pkgrel
local subpackage
local subpackages
export CARCH="${arch}"
# shellcheck disable=SC2034 # APKBUILD reads CARCH while sourced below.
local CARCH="${arch}"
cd "${package_dir}" || exit 1
# shellcheck source=/dev/null
. ./APKBUILD
@@ -119,6 +120,31 @@ apk_package_apk_names() {
)
}
apk_package_versioned_names() {
local package_dir="$1"
local arch="$2"
(
set +u
local pkgname
local pkgver
local pkgrel
local subpackage
local subpackages
# shellcheck disable=SC2034 # APKBUILD reads CARCH while sourced below.
local CARCH="${arch}"
cd "${package_dir}" || exit 1
# shellcheck source=/dev/null
. ./APKBUILD
printf '%s=%s-r%s\n' "${pkgname}" "${pkgver}" "${pkgrel}"
for subpackage in ${subpackages:-}; do
subpackage="${subpackage%%:*}"
printf '%s=%s-r%s\n' "${subpackage}" "${pkgver}" "${pkgrel}"
done
)
}
apk_container_package_dir() {
local repo_root="$1"
local package_dir="$2"