From 7869efeab53f018a21622d44b30fd883216b2b72 Mon Sep 17 00:00:00 2001 From: Christoph Brandau Date: Thu, 23 Jul 2026 17:17:33 +0200 Subject: [PATCH] ci(builder): pass build directory to makepkg command The CI workflow for building applications has been updated to correctly manage the build environment. Previously, makepkg was run without explicitly defining where its output should go, which could lead to unpredictable file placement or conflicts. This change ensures that a dedicated temporary directory is used as the build output location. - Explicitly create and use a makepkg directory - Pass BUILDDIR variable to makepkg command --- .gitea/workflows/app_builder.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/app_builder.yaml b/.gitea/workflows/app_builder.yaml index 1b0c8c7..9cd16c5 100644 --- a/.gitea/workflows/app_builder.yaml +++ b/.gitea/workflows/app_builder.yaml @@ -210,12 +210,13 @@ jobs: BUILD_ROOT="$(mktemp -d)" cp -a . "$BUILD_ROOT/source" + mkdir -p "$BUILD_ROOT/makepkg" useradd --create-home builder chown -R builder:builder "$BUILD_ROOT" runuser -u builder -- \ - bash -lc "cd '$BUILD_ROOT/source' && makepkg --cleanbuild --noconfirm" + bash -lc "cd '$BUILD_ROOT/source' && BUILDDIR='$BUILD_ROOT/makepkg' makepkg --cleanbuild --noconfirm" cp "$BUILD_ROOT"/source/*.pkg.tar.zst arch-output/ chmod 0644 arch-output/*.pkg.tar.zst