mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-11 19:11:08 +00:00
CI: fold the platform-library list before matching it
The list spans three lines inside one string, and the case pattern looked for the name between two spaces - so the last name on each line, followed by a newline, could never match. libaaudio.so is one of those, and the DirectAudio relay helper is the first library we ship that needs it.
This commit is contained in:
1 parent
f542e59a20
commit
849596facb
1 file changed
+3
-1
@@ -172,7 +172,9 @@ jobs:
|
||||
for so in *.so; do
|
||||
for need in $(readelf -d "$so" | sed -n 's/.*NEEDED.*\[\(.*\)\]/\1/p'); do
|
||||
[ -f "$need" ] && continue
|
||||
case " $SYSTEM " in *" $need "*) continue ;; esac
|
||||
# $SYSTEM spans lines; unquoted echo folds its newlines to spaces, or the last
|
||||
# name on each line could never match (libaaudio.so did not, for the relay helper).
|
||||
case " $(echo $SYSTEM) " in *" $need "*) continue ;; esac
|
||||
echo "::error::$so needs $need, which is neither in the apk nor a platform library"
|
||||
fail=1
|
||||
done
|
||||
|
||||
Reference in new issue
Block a user