workflow: add safe.directory configuration for Git in build script

This commit is contained in:
jianlins 2026-03-12 20:12:53 -06:00
parent eb7a304948
commit a23f3fb7fd
1 changed files with 2 additions and 0 deletions

View File

@ -105,6 +105,8 @@ jobs:
find build -maxdepth 3 -type f \( -name 'libllama*' -o -name 'libggml*' \) -exec cp -av {} "${OUTDIR}/lib/" \; || true
git config --global --add safe.directory "${GITHUB_WORKSPACE:-/__w/llama.cpp/llama.cpp}"
git rev-parse HEAD > "${OUTDIR}/meta/git-commit.txt"
git describe --tags --always > "${OUTDIR}/meta/git-describe.txt" || true
cat /etc/os-release > "${OUTDIR}/meta/os-release.txt" || true