scripts: unify Linux native builds and retain restore caches [CI]
ci/woodpecker/push/dev-image Pipeline is running
ci/woodpecker/push/web-build Pipeline was successful
ci/woodpecker/push/verify Pipeline was successful

Build musl and glibc for amd64 and arm64 through one native package path. Reuse musl outputs for OCI images and OpenWrt installers, and export binaries inside a rootless unshare session.

Restore the executable dependency graph into a shared persistent NuGet cache, build managed dependencies once, and run isolated native publishes in parallel.

Clean temporary outputs and expired image layers under store locks, retire inactive legacy stores after seven days, and retain two toolchain exports. Add regression coverage for staging, extraction, packaging and cleanup boundaries.
This commit is contained in:
justme committed 2026-10-21 12:29:00 +08:00
1 parent 4515d7b075
commit 490b008a57
28 files changed
+712 -535

No files matched your search

+5 -5
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Prepare the native MsQuic runtime for in-process Agent tests.
# Prepare the glibc MsQuic sidecars for Agent packages and in-process tests.
# Debian packages are extracted locally (no root install); downloads live in
# the persistent backend test cache so fast and slow workflows reuse them.
set -euo pipefail
@@ -9,16 +9,16 @@ runtime="$cache/runtime"
downloads="$cache/downloads"
mkdir -p "$runtime" "$downloads"
if command -v apk >/dev/null 2>&1; then
if [[ -z "${2:-}" ]] && command -v apk >/dev/null 2>&1; then
# The Alpine test image installs runtime libraries into the normal loader path.
apk add --no-cache libmsquic numactl lttng-ust zlib >/dev/null
exit 0
fi
case "$(uname -m)" in
x86_64) deb_arch=amd64 ;;
case "${2:-$(uname -m)}" in
x86_64|amd64) deb_arch=amd64 ;;
aarch64|arm64) deb_arch=arm64 ;;
*) echo "unsupported architecture for QUIC test runtime: $(uname -m)" >&2; exit 2 ;;
*) echo "unsupported architecture for QUIC runtime: ${2:-$(uname -m)}" >&2; exit 2 ;;
esac
download() {