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!
This commit is contained in:
parent
4ef6d92f6f
commit
c23b707f21
1 changed files with 15 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue