From 7ea97468bfdb1cb1dfd7b88f8ad403ab7d2ee11e Mon Sep 17 00:00:00 2001 From: robojerk Date: Mon, 21 Jul 2025 00:49:32 +0000 Subject: [PATCH] maybe this time --- .forgejo/workflows/build-packages.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.forgejo/workflows/build-packages.yml b/.forgejo/workflows/build-packages.yml index e4dc752..1f09820 100644 --- a/.forgejo/workflows/build-packages.yml +++ b/.forgejo/workflows/build-packages.yml @@ -94,6 +94,13 @@ jobs: cp -r /tmp/bootc-deb/* . cp -r /tmp/bootc-deb/.* . 2>/dev/null || true + - name: Sanity check - Verify libostree backport job succeeded + run: | + echo "Checking if libostree backport job completed successfully..." + # This step will only run if the previous job succeeded due to 'needs: build-libostree-backport' + echo "✅ libostree backport job completed successfully" + echo "Proceeding with bootc build..." + - name: Setup build environment for bootc run: | apt update -y @@ -107,16 +114,27 @@ jobs: - name: Apply compatibility patch run: | cd bootc-${BOOTC_VERSION} + if [ ! -f ../bootc-libostree-compatibility.patch ]; then + echo "❌ ERROR: bootc-libostree-compatibility.patch not found!" + echo "This patch is required for bootc to work with the libostree backport." + exit 1 + fi patch -p1 < ../bootc-libostree-compatibility.patch - name: Copy debian packaging run: | cd bootc-${BOOTC_VERSION} + if [ ! -d ../debian ]; then + echo "❌ ERROR: debian packaging directory not found!" + echo "The debian/ directory is required for building the package." + exit 1 + fi cp -r ../debian . - name: Build bootc package run: | cd bootc-${BOOTC_VERSION} + echo "Building bootc package with libostree compatibility patch..." dpkg-buildpackage -us -uc -b - name: List built packages @@ -143,6 +161,14 @@ jobs: cp -r /tmp/bootc-deb/* . cp -r /tmp/bootc-deb/.* . 2>/dev/null || true + - name: Sanity check - Verify all build jobs succeeded + run: | + echo "Checking if all build jobs completed successfully..." + # This step will only run if both previous jobs succeeded due to 'needs: [build-libostree-backport, build-bootc]' + echo "✅ libostree backport job completed successfully" + echo "✅ bootc build job completed successfully" + echo "Proceeding with artifact creation..." + - name: Create combined artifacts run: | mkdir -p release-assets