From fd04d26602d242fc50cb6c61778107c6dec7aa26 Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Fri, 22 Dec 2023 00:08:45 -0700 Subject: [PATCH] Output logs better --- .github/workflows/main.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cb50f63..4debe93 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -96,12 +96,19 @@ jobs: mkdir -p "$debootstrap_path" tar -xf /tmp/debootstrap.tar.gz -C "$debootstrap_path" rm /tmp/debootstrap.tar.gz - DEBOOTSTRAP_DIR="${debootstrap_path}/debootstrap-master" \ - "${debootstrap_path}/debootstrap-master/debootstrap" \ - --arch=armhf \ - --variant=minbase \ - --foreign \ - bullseye "$src_path" + if ! DEBOOTSTRAP_DIR="${debootstrap_path}/debootstrap-master" \ + "${debootstrap_path}/debootstrap-master/debootstrap" \ + --arch=armhf \ + --variant=minbase \ + --foreign \ + bullseye "$src_path"; then + cat "${src_path}/debootstrap/debootstrap.log" + exit 1 + fi + if ! chroot "$src_path" /debootstrap/debootstrap --second-stage; then + cat "${src_path}/debootstrap/debootstrap.log" + exit 1 + fi mkdir -p "${src_path}/usr/sbin" cat > "${src_path}/usr/sbin/policy-rc.d" << EOF #!/bin/sh @@ -121,7 +128,7 @@ jobs: mount --bind / "${src_path}/mnt/remarkable" mount --bind /home "${src_path}/mnt/remarkable/home" chroot "$src_path" bash -x <<'EOF' - /debootstrap/debootstrap --second-stage + set -e apt install -y ca-certificates apt install -y \ python3-dev \ @@ -136,6 +143,7 @@ jobs: set -eu src_path=/home/root/.local/share/debian chroot "$src_path" bash -x <<'EOF' + set -e source /opt/lib/nuitka/bin/activate pip install -r requirements.txt nuitka3 \