From 904654212f2681682167180b8f24667bfcf056c3 Mon Sep 17 00:00:00 2001 From: git-echo Date: Wed, 27 May 2026 20:44:16 -0500 Subject: [PATCH] fix: remove all Alpine cleanup steps that broke abuild - Revert build-alpine.sh to original (no cleanup lines) - Remove CI Alpine cleanup step entirely - Keep version verification and exact version upload in CI - The original build worked fine without cleanup; stale packages are caught by version verification --- .gitea/workflows/ci.yml | 4 ---- build-alpine.sh | 4 ---- 2 files changed, 8 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index fc98ea8..eb0ca1f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -321,10 +321,6 @@ jobs: apk add --no-cache alpine-sdk rust cargo openssl openssl-dev elogind-dev musl-dev abuild gcc - name: Build release binary run: cargo build --release --target x86_64-unknown-linux-musl - - name: Clean stale Alpine packages - run: | - rm -f releases/linux-patch-api-*.apk 2>/dev/null || true - rm -f /home/builduser/packages/home/x86_64/linux-patch-api-*.apk 2>/dev/null || true - name: Build Alpine package run: | chmod +x build-alpine.sh diff --git a/build-alpine.sh b/build-alpine.sh index 46adb63..f5b1168 100644 --- a/build-alpine.sh +++ b/build-alpine.sh @@ -8,10 +8,6 @@ set -e echo "=== Linux Patch API - Alpine Build Script ===" echo "" -# Clean stale packages from previous builds -rm -f releases/linux-patch-api-*.apk 2>/dev/null || true -rm -f /home/builduser/packages/home/x86_64/linux-patch-api-*.apk 2>/dev/null || true - # Source cargo environment (for rustup-installed toolchain in CI) if [ -f "$HOME/.cargo/env" ]; then . "$HOME/.cargo/env"