From c23b707f219be3390e70469f7cf88f9f06d88045 Mon Sep 17 00:00:00 2001 From: joe Date: Wed, 13 Aug 2025 22:45:52 -0700 Subject: [PATCH] Fix CI: Correct Debian package detection and location handling - Fix package detection to look in parent directory where dpkg-buildpackage puts them - Copy packages to current directory for CI workflow compatibility - Handle both current and parent directory package locations - Should resolve the 'No Debian package found' error - This is the final fix needed for a complete CI success! --- .forgejo/workflows/ci.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 5d288e00..fe83d2e8 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -119,9 +119,13 @@ jobs: dpkg-deb --build debian/apt-ostree apt-ostree_0.1.0_amd64.deb fi - # Check if package was created - if ls *.deb >/dev/null 2>&1; then + # Check if package was created (dpkg-buildpackage puts them in parent directory) + if ls ../*.deb >/dev/null 2>&1; then echo "✅ Debian package created successfully" + ls -la ../*.deb + # Copy packages to current directory for CI workflow + cp ../*.deb . + echo "✅ Packages copied to current directory" ls -la *.deb else echo "❌ No Debian package found" @@ -138,8 +142,16 @@ jobs: run: | echo "Testing built package..." - # Find the package + # Find the package (check both current and parent directory) DEB_PACKAGE=$(ls *.deb 2>/dev/null | head -1) + if [ -z "$DEB_PACKAGE" ]; then + DEB_PACKAGE=$(ls ../*.deb 2>/dev/null | head -1) + if [ -n "$DEB_PACKAGE" ]; then + echo "Found package in parent directory, copying to current directory..." + cp ../*.deb . + DEB_PACKAGE=$(ls *.deb 2>/dev/null | head -1) + fi + fi if [ -n "$DEB_PACKAGE" ]; then echo "✅ Found package: $DEB_PACKAGE"