From 4d33f081503fddb558ba758e0af46ded14676295 Mon Sep 17 00:00:00 2001 From: deepend-tildeclub <58404188+deepend-tildeclub@users.noreply.github.com> Date: Sat, 10 Jan 2026 17:35:36 -0700 Subject: [PATCH] Refactor Debian build workflow with error handling Updated the build workflow to include error handling and cleanup steps. --- .github/workflows/debian-build.yml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/.github/workflows/debian-build.yml b/.github/workflows/debian-build.yml index 764a30d6..aafd0197 100644 --- a/.github/workflows/debian-build.yml +++ b/.github/workflows/debian-build.yml @@ -15,6 +15,7 @@ jobs: steps: - name: Install base tooling (git + deps) run: | + set -eux export DEBIAN_FRONTEND=noninteractive apt-get update apt-get install -y --no-install-recommends \ @@ -29,13 +30,31 @@ jobs: submodules: true - name: Configure - run: meson setup build -Dtext=true -Dtheme-manager=true -Dauto_features=enabled + run: | + set -eux + rm -rf build + meson setup build \ + -Dtext-frontend=true \ + -Dtheme-manager=true \ + -Dauto_features=enabled + # If configure fails, show the project's actual option names in the log. + - name: Show Meson options (on failure) + if: failure() + run: | + set -eux + meson configure build || true - name: Build - run: ninja -C build + run: | + set -eux + ninja -C build - name: Test - run: ninja -C build test + run: | + set -eux + ninja -C build test - name: Install - run: ninja -C build install + run: | + set -eux + ninja -C build install