Add debugging to CI build process
All checks were successful
Comprehensive CI/CD Pipeline / Build and Test (push) Successful in 1m33s
Comprehensive CI/CD Pipeline / Security Audit (push) Successful in 42s
Comprehensive CI/CD Pipeline / Package Validation (push) Successful in 57s
Comprehensive CI/CD Pipeline / Status Report (push) Successful in 16s

- Add verbose output to see what packages are defined in debian/control
- Add checks for .install files
- Add detailed logging of build output
- Add debugging of parent/current directory contents
- This will help identify why only 1 package is being built instead of 6
This commit is contained in:
robojerk 2025-09-04 15:26:40 -07:00
parent 2f61425f77
commit e7429e50e5

View file

@ -153,21 +153,37 @@ jobs:
# Build Debian package with multi-package structure # Build Debian package with multi-package structure
echo "Building multi-package Debian package..." echo "Building multi-package Debian package..."
dpkg-buildpackage -b -us -uc
# Debug: Check debian/control for packages
echo "=== DEBUG: Checking debian/control packages ==="
grep "^Package:" debian/control || echo "No packages found in debian/control"
# Debug: Check .install files
echo "=== DEBUG: Checking .install files ==="
ls -la debian/*.install 2>/dev/null || echo "No .install files found"
# Run the build
dpkg-buildpackage -b -us -uc 2>&1 | tee build.log
# Debug: Check what was actually built
echo "=== DEBUG: Checking build output ==="
echo "Parent directory contents:"
ls -la ../ | grep -E "\.(deb|buildinfo|changes)$" || echo "No .deb files found"
echo "Current directory contents:"
ls -la . | grep -E "\.(deb|buildinfo|changes)$" || echo "No .deb files found"
# Check if packages were created # Check if packages were created in parent directory
if ls ../mock_*.deb >/dev/null 2>&1; then if ls ../mock*.deb >/dev/null 2>&1; then
echo "✅ Debian packages created successfully" echo "✅ Debian packages created successfully in parent directory"
echo "Built packages:" echo "Built packages:"
ls -la ../mock_*.deb ls -la ../mock*.deb
# Copy packages to current directory # Copy packages to current directory
echo "Copying packages to current directory..." echo "Copying packages to current directory..."
cp ../mock_*.deb . 2>/dev/null || echo "No packages to copy" cp ../mock*.deb .
echo "✅ Packages copied:" echo "✅ Packages copied:"
ls -la mock_*.deb 2>/dev/null || echo "No packages found in current directory" ls -la mock*.deb
echo "Checking parent directory:"
ls -la ../mock_*.deb 2>/dev/null || echo "No packages found in parent directory"
else else
echo "❌ No Debian packages found" echo "❌ No Debian packages found"
exit 1 exit 1