From c803a4606cc254b769f3179619a55ee0e15f6118 Mon Sep 17 00:00:00 2001 From: Mega Mind <146339422+M3gA-Mind@users.noreply.github.com> Date: Wed, 24 Jun 2026 19:26:12 +0530 Subject: [PATCH] ci(build-desktop): stop CEF lib-dir lookup aborting the Linux build under pipefail (#4078) Co-authored-by: M3gA-Mind --- .github/workflows/build-desktop.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-desktop.yml b/.github/workflows/build-desktop.yml index 294c6ee2b..240f14793 100644 --- a/.github/workflows/build-desktop.yml +++ b/.github/workflows/build-desktop.yml @@ -453,7 +453,13 @@ jobs: # never regress relative to the old double build. # macOS / Windows take the single-call path unchanged. find_cef_lib_dir() { - find "$HOME/.cache/tauri-cef" -name libcef.so -printf '%h\n' 2>/dev/null | head -1 + # `-quit` stops find after the first match so the `| head -1` can't + # close the pipe early and SIGPIPE find. Under this step's + # `set -o pipefail` + `-e`, that SIGPIPE (exit 141) aborted the whole + # build before `cargo tauri build` ran whenever the warm cache held + # more than one libcef.so (multiple version/arch dirs). Trailing + # `|| true` also absorbs find's exit 1 when the cache dir is absent. + find "$HOME/.cache/tauri-cef" -name libcef.so -printf '%h\n' -quit 2>/dev/null | head -1 || true } if [ "${RUNNER_OS}" = "Linux" ]; then CEF_LIB_DIR="$(find_cef_lib_dir)"