Fix build script and package build issues in Forgejo workflows
Some checks failed
Build apt-ostree Package / Build apt-ostree Package (push) Failing after 1m23s
Comprehensive CI / test (Debian Stable (aarch64), aarch64-unknown-linux-gnu) (push) Failing after 2s
Comprehensive CI / test (Debian Stable (x86_64), x86_64-unknown-linux-gnu) (push) Failing after 2s
Comprehensive CI / security (push) Failing after 2s
Comprehensive CI / benchmark (push) Failing after 2s
Comprehensive CI / docs (push) Failing after 2s
Comprehensive CI / debian-package (push) Failing after 2s
Comprehensive CI / ostree-integration (push) Failing after 2s
Comprehensive CI / coverage (push) Failing after 2s
Test apt-ostree Build / Test apt-ostree Build (with existing libostree) (push) Failing after 1m20s
Comprehensive CI / status (push) Successful in 1s

- Add fallback manual build process when build script is missing
- Improve error handling for package build steps
- Add file existence checks and directory validation
- Create minimal debian structure for testing when needed
- Better error messages and status reporting for CI debugging
This commit is contained in:
joe 2025-08-13 16:44:40 -07:00
parent 1936849be9
commit f2a8f7d125
3 changed files with 144 additions and 5 deletions

View file

@ -432,7 +432,67 @@ jobs:
- name: Build Debian package
run: |
./build-debian-trixie.sh
# Check if build script exists and make it executable
if [ -f "./build-debian-trixie.sh" ]; then
echo "✅ Build script found, making it executable..."
chmod +x ./build-debian-trixie.sh
# Build the package
./build-debian-trixie.sh
echo "✅ Package build successful"
else
echo "⚠️ Build script not found, attempting manual build..."
# Try manual build process
echo "Installing build dependencies..."
apt-get update
apt-get install -y \
build-essential \
devscripts \
debhelper \
dh-cargo \
cargo \
rustc \
pkg-config \
libssl-dev \
libdbus-1-dev \
libglib2.0-dev \
libapt-pkg-dev \
libzstd-dev \
libcurl4-gnutls-dev \
libsystemd-dev \
libmount-dev \
libselinux1-dev \
libsepol-dev \
libarchive-dev \
libgpgme-dev \
libavahi-client-dev \
libavahi-common-dev \
libffi-dev \
libpcre2-dev \
libxml2-dev \
zlib1g-dev \
liblz4-dev \
liblzma-dev \
nettle-dev \
libgmp-dev \
libicu-dev \
libpython3-dev \
python3-dev \
python3-setuptools \
python3-wheel \
python3-pip
echo "Building package manually..."
dpkg-buildpackage -us -uc -b
if [ $? -eq 0 ]; then
echo "✅ Manual package build successful"
else
echo "❌ Manual package build failed"
exit 1
fi
fi
- name: Create package summary
run: |