Fix build script and package build issues in Forgejo workflows
- 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:
parent
4e232e1012
commit
670dff063b
3 changed files with 144 additions and 5 deletions
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue