ci(release): skip CoreServices system library on macOS (#19021)

Problem:
The release script bundles a system library (CoreServices) that was
added in #18294, which leads to errors on M1 since the architecture is
different from the Github runner.

Solution:
Skip CoreServices when bundling the libraries (as was done for the
CoreFoundation library that #18294 replaced with CoreServices).
This commit is contained in:
Christian Clason 2022-06-19 16:20:27 +02:00 committed by GitHub
parent 7b2b44bce4
commit c5c5d980a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,7 @@ jobs:
libs=($(otool -L nvim-osx64/bin/nvim | sed 1d | sed -E -e 's|^[[:space:]]*||' -e 's| .*||'))
echo "libs:"
for lib in "${libs[@]}"; do
if echo "$lib" | grep -q -E 'libSystem|CoreFoundation' 2>/dev/null; then
if echo "$lib" | grep -q -E 'libSystem|CoreServices' 2>/dev/null; then
echo " [skipped] $lib"
else
echo " $lib"