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
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:
parent
2f61425f77
commit
e7429e50e5
1 changed files with 25 additions and 9 deletions
|
|
@ -153,21 +153,37 @@ jobs:
|
|||
|
||||
# Build Debian package with multi-package structure
|
||||
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
|
||||
if ls ../mock_*.deb >/dev/null 2>&1; then
|
||||
echo "✅ Debian packages created successfully"
|
||||
# Check if packages were created in parent directory
|
||||
if ls ../mock*.deb >/dev/null 2>&1; then
|
||||
echo "✅ Debian packages created successfully in parent directory"
|
||||
echo "Built packages:"
|
||||
ls -la ../mock_*.deb
|
||||
ls -la ../mock*.deb
|
||||
|
||||
# Copy 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:"
|
||||
ls -la mock_*.deb 2>/dev/null || echo "No packages found in current directory"
|
||||
echo "Checking parent directory:"
|
||||
ls -la ../mock_*.deb 2>/dev/null || echo "No packages found in parent directory"
|
||||
ls -la mock*.deb
|
||||
else
|
||||
echo "❌ No Debian packages found"
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue