ci(build-desktop): stop CEF lib-dir lookup aborting the Linux build under pipefail (#4078)

Co-authored-by: M3gA-Mind <elvin@mahadao.com>
This commit is contained in:
Mega Mind
2026-06-24 19:26:12 +05:30
committed by GitHub
co-authored by M3gA-Mind
parent 0d6acfd460
commit c803a4606c
+7 -1
View File
@@ -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)"