Attempt to fix ci.yml #2
Some checks failed
Build ostree packages from sid to trixie / build (push) Failing after 6s
Some checks failed
Build ostree packages from sid to trixie / build (push) Failing after 6s
This commit is contained in:
parent
5c2922853a
commit
5c4d5143dc
2 changed files with 65 additions and 1 deletions
|
|
@ -103,6 +103,18 @@ jobs:
|
||||||
# Update changelog for trixie
|
# Update changelog for trixie
|
||||||
echo 'Updating changelog for trixie...'
|
echo 'Updating changelog for trixie...'
|
||||||
dch --local '+trixie' --distribution trixie 'Backport from sid to trixie'
|
dch --local '+trixie' --distribution trixie 'Backport from sid to trixie'
|
||||||
|
|
||||||
|
# Install build dependencies
|
||||||
|
echo 'Installing build dependencies...'
|
||||||
|
mk-build-deps -i -t 'apt-get -y' debian/control || echo 'Build deps installation failed, continuing...'
|
||||||
|
|
||||||
|
# Check source package structure
|
||||||
|
echo 'Checking source package structure...'
|
||||||
|
ls -la
|
||||||
|
echo 'Debian directory contents:'
|
||||||
|
ls -la debian/
|
||||||
|
echo 'Control file:'
|
||||||
|
cat debian/control
|
||||||
|
|
||||||
# Build packages
|
# Build packages
|
||||||
echo 'Building ostree packages...'
|
echo 'Building ostree packages...'
|
||||||
|
|
@ -111,11 +123,18 @@ jobs:
|
||||||
ls -la
|
ls -la
|
||||||
|
|
||||||
echo 'Running dpkg-buildpackage...'
|
echo 'Running dpkg-buildpackage...'
|
||||||
|
echo 'Build dependencies check:'
|
||||||
|
dpkg -l | grep -E "(libglib2.0-dev|libfuse3-dev|libsoup2.4-dev|libarchive-dev|libcurl4-openssl-dev|libsystemd-dev)" || echo "Some dependencies missing"
|
||||||
|
|
||||||
if dpkg-buildpackage -us -uc -b; then
|
if dpkg-buildpackage -us -uc -b; then
|
||||||
echo 'Build successful!'
|
echo 'Build successful!'
|
||||||
else
|
else
|
||||||
echo 'Build failed! Checking for any partial packages...'
|
echo 'Build failed! Checking for any partial packages...'
|
||||||
ls -la /tmp/*.deb 2>/dev/null || echo 'No .deb files found after failed build'
|
ls -la /tmp/*.deb 2>/dev/null || echo 'No .deb files found after failed build'
|
||||||
|
echo 'Checking build logs...'
|
||||||
|
ls -la /tmp/ostree-*/ 2>/dev/null || echo 'No build directory found'
|
||||||
|
echo 'Checking for build errors...'
|
||||||
|
find /tmp -name "*.log" -exec echo "=== {} ===" \; -exec cat {} \; 2>/dev/null || echo 'No log files found'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -123,12 +142,25 @@ jobs:
|
||||||
ls -la /tmp/*.deb 2>/dev/null || echo 'No .deb files found in /tmp'
|
ls -la /tmp/*.deb 2>/dev/null || echo 'No .deb files found in /tmp'
|
||||||
ls -la /tmp/*.dsc 2>/dev/null || echo 'No .dsc files found in /tmp'
|
ls -la /tmp/*.dsc 2>/dev/null || echo 'No .dsc files found in /tmp'
|
||||||
ls -la /tmp/*.tar.xz 2>/dev/null || echo 'No .tar.xz files found in /tmp'
|
ls -la /tmp/*.tar.xz 2>/dev/null || echo 'No .tar.xz files found in /tmp'
|
||||||
|
|
||||||
|
# Check if we're in the right directory for the build
|
||||||
|
echo 'Current working directory:'
|
||||||
|
pwd
|
||||||
|
echo 'Files in current directory:'
|
||||||
|
ls -la
|
||||||
|
echo 'Looking for .deb files in current directory:'
|
||||||
|
ls -la *.deb 2>/dev/null || echo 'No .deb files in current directory'
|
||||||
|
|
||||||
# Copy built packages to workspace
|
# Copy built packages to workspace
|
||||||
echo 'Copying built packages to workspace...'
|
echo 'Copying built packages to workspace...'
|
||||||
cp /tmp/*.deb /workspace/ 2>/dev/null || true
|
cp /tmp/*.deb /workspace/ 2>/dev/null || true
|
||||||
cp /tmp/*.dsc /workspace/ 2>/dev/null || true
|
cp /tmp/*.dsc /workspace/ 2>/dev/null || true
|
||||||
cp /tmp/*.tar.xz /workspace/ 2>/dev/null || true
|
cp /tmp/*.tar.xz /workspace/ 2>/dev/null || true
|
||||||
|
|
||||||
|
# Also copy from current directory (where dpkg-buildpackage might have put them)
|
||||||
|
cp *.deb /workspace/ 2>/dev/null || true
|
||||||
|
cp *.dsc /workspace/ 2>/dev/null || true
|
||||||
|
cp *.tar.xz /workspace/ 2>/dev/null || true
|
||||||
|
|
||||||
echo 'Built packages in /workspace:'
|
echo 'Built packages in /workspace:'
|
||||||
ls -la /workspace/*.deb 2>/dev/null || echo 'No .deb files found in /workspace'
|
ls -la /workspace/*.deb 2>/dev/null || echo 'No .deb files found in /workspace'
|
||||||
|
|
|
||||||
34
Dockerfile
34
Dockerfile
|
|
@ -5,16 +5,48 @@ ENV DEBIAN_FRONTEND=noninteractive
|
||||||
ENV LANG=C.UTF-8
|
ENV LANG=C.UTF-8
|
||||||
ENV LC_ALL=C.UTF-8
|
ENV LC_ALL=C.UTF-8
|
||||||
|
|
||||||
# Install basic build tools
|
# Install build dependencies for OSTree
|
||||||
RUN apt update && \
|
RUN apt update && \
|
||||||
apt install -y \
|
apt install -y \
|
||||||
build-essential \
|
build-essential \
|
||||||
devscripts \
|
devscripts \
|
||||||
debhelper \
|
debhelper \
|
||||||
|
dh-autoreconf \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
git \
|
git \
|
||||||
curl \
|
curl \
|
||||||
wget \
|
wget \
|
||||||
|
cmake \
|
||||||
|
ninja-build \
|
||||||
|
meson \
|
||||||
|
autotools-dev \
|
||||||
|
autoconf \
|
||||||
|
automake \
|
||||||
|
libtool \
|
||||||
|
libglib2.0-dev \
|
||||||
|
libgpgme-dev \
|
||||||
|
libfuse3-dev \
|
||||||
|
libsoup2.4-dev \
|
||||||
|
libarchive-dev \
|
||||||
|
libcurl4-openssl-dev \
|
||||||
|
libsystemd-dev \
|
||||||
|
libcap-dev \
|
||||||
|
liblzma-dev \
|
||||||
|
libzstd-dev \
|
||||||
|
libbz2-dev \
|
||||||
|
liblz4-dev \
|
||||||
|
libz-dev \
|
||||||
|
libssl-dev \
|
||||||
|
libxml2-dev \
|
||||||
|
libyaml-dev \
|
||||||
|
libjson-c-dev \
|
||||||
|
libavahi-client-dev \
|
||||||
|
libavahi-common-dev \
|
||||||
|
libavahi-glib-dev \
|
||||||
|
libavahi-gobject-dev \
|
||||||
|
libavahi-ui-gtk3-dev \
|
||||||
|
libavahi-ui-gtk3-0 \
|
||||||
|
libavahi-ui-gtk3-0-dev \
|
||||||
&& \
|
&& \
|
||||||
apt clean && \
|
apt clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue