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
parent cd7ac0eb29
commit e2915709b0

View File

@ -102,7 +102,7 @@ jobs:
libs=($(otool -L nvim-osx64/bin/nvim | sed 1d | sed -E -e 's|^[[:space:]]*||' -e 's| .*||')) libs=($(otool -L nvim-osx64/bin/nvim | sed 1d | sed -E -e 's|^[[:space:]]*||' -e 's| .*||'))
echo "libs:" echo "libs:"
for lib in "${libs[@]}"; do 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" echo " [skipped] $lib"
else else
echo " $lib" echo " $lib"