mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-19 04:00:19 +00:00
Refactor Debian build workflow with error handling
Updated the build workflow to include error handling and cleanup steps.
This commit is contained in:
committed by
GitHub
parent
d454cafbf5
commit
4d33f08150
27
.github/workflows/debian-build.yml
vendored
27
.github/workflows/debian-build.yml
vendored
@@ -15,6 +15,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Install base tooling (git + deps)
|
- name: Install base tooling (git + deps)
|
||||||
run: |
|
run: |
|
||||||
|
set -eux
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
@@ -29,13 +30,31 @@ jobs:
|
|||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Configure
|
- 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
|
- name: Build
|
||||||
run: ninja -C build
|
run: |
|
||||||
|
set -eux
|
||||||
|
ninja -C build
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: ninja -C build test
|
run: |
|
||||||
|
set -eux
|
||||||
|
ninja -C build test
|
||||||
|
|
||||||
- name: Install
|
- name: Install
|
||||||
run: ninja -C build install
|
run: |
|
||||||
|
set -eux
|
||||||
|
ninja -C build install
|
||||||
|
|||||||
Reference in New Issue
Block a user