From 48c561fcc9af58a1eaf24f52b39df3acced4db15 Mon Sep 17 00:00:00 2001 From: jianlins Date: Fri, 13 Mar 2026 11:57:51 -0600 Subject: [PATCH] workflow: enhance library packaging by preserving symlinks and adding runtime checks --- .github/workflows/custom_build_rockylinux.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/custom_build_rockylinux.yml b/.github/workflows/custom_build_rockylinux.yml index 6a53f84dc0..1abc520c3b 100644 --- a/.github/workflows/custom_build_rockylinux.yml +++ b/.github/workflows/custom_build_rockylinux.yml @@ -121,7 +121,12 @@ jobs: find build/bin -maxdepth 1 -type f \( -name 'llama-*' -o -name 'ggml-*' \) -exec cp -av {} "${OUTDIR}/bin/" \; fi - find build -maxdepth 3 -type f \( -name 'libllama*' -o -name 'libggml*' \) -exec cp -av {} "${OUTDIR}/lib/" \; || true + # Keep both files and symlinks so SONAME links (for example libmtmd.so.0) survive packaging. + find build -maxdepth 3 \( -type f -o -type l \) \( -name 'libllama*' -o -name 'libggml*' -o -name 'libmtmd*' \) -exec cp -av {} "${OUTDIR}/lib/" \; || true + + # Fail fast if required runtime library links are missing from the payload. + test -e "${OUTDIR}/lib/libmtmd.so.0" + test -e "${OUTDIR}/lib/libllama.so.0" git config --global --add safe.directory "${GITHUB_WORKSPACE:-/__w/llama.cpp/llama.cpp}" @@ -153,4 +158,4 @@ jobs: tag_name: ${{ env.TAG_NAME }} files: | ./${{ env.ARCHIVE_BASENAME }}-${{ env.TAG_NAME }}.tar.gz - ./${{ env.ARCHIVE_BASENAME }}-${{ env.TAG_NAME }}.tar.gz.sha256 \ No newline at end of file + ./${{ env.ARCHIVE_BASENAME }}-${{ env.TAG_NAME }}.tar.gz.sha256