fix: validate iOS release slice without pipefail false negative
This commit is contained in:
@@ -102,8 +102,10 @@ build_release() {
|
||||
(cd "$ROOT" && bazel build --//:renderer=metal //platform/ios:MapLibre.dynamic)
|
||||
IOS_SOURCE="$ROOT/bazel-out/darwin_x86_64-fastbuild/bin/platform/ios/$IOS_ZIP_NAME"
|
||||
[[ -f "$IOS_SOURCE" ]] || die "iOS XCFramework zip missing"
|
||||
unzip -Z1 "$IOS_SOURCE" | grep -Fq "/ios-arm64/" || die "iOS XCFramework missing ios-arm64 device slice"
|
||||
if unzip -Z1 "$IOS_SOURCE" | grep -Eiq "simulator|ios-arm64_x86_64"; then
|
||||
local ios_listing
|
||||
ios_listing="$(unzip -Z1 "$IOS_SOURCE")"
|
||||
grep -Fq "/ios-arm64/" <<<"$ios_listing" || die "iOS XCFramework missing ios-arm64 device slice"
|
||||
if grep -Eiq "simulator|ios-arm64_x86_64" <<<"$ios_listing"; then
|
||||
die "iOS XCFramework unexpectedly contains simulator slice"
|
||||
fi
|
||||
cp "$IOS_SOURCE" "$ARTIFACT_DIR/$IOS_ZIP_NAME"
|
||||
|
||||
Reference in New Issue
Block a user