Fix Apple preflight for main builds
This commit is contained in:
parent
524e5fcce3
commit
b22bdd396e
@ -4,10 +4,6 @@ set -euo pipefail
|
|||||||
platform="${1:?platform is required}"
|
platform="${1:?platform is required}"
|
||||||
should_release="${2:-false}"
|
should_release="${2:-false}"
|
||||||
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
||||||
strict_signed_release="false"
|
|
||||||
if [[ "${GITHUB_REF:-}" == refs/tags/v* ]]; then
|
|
||||||
strict_signed_release="true"
|
|
||||||
fi
|
|
||||||
|
|
||||||
emit_output() {
|
emit_output() {
|
||||||
local key="$1"
|
local key="$1"
|
||||||
@ -34,15 +30,6 @@ set_build_state() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
fail_release_preflight() {
|
|
||||||
local reason="$1"
|
|
||||||
|
|
||||||
emit_output "should_build_platform" "false"
|
|
||||||
emit_output "skip_reason" "$reason"
|
|
||||||
echo "Release preflight failed for $platform: $reason" >&2
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
case "$platform" in
|
case "$platform" in
|
||||||
linux)
|
linux)
|
||||||
set_build_state "true" ""
|
set_build_state "true" ""
|
||||||
@ -65,9 +52,6 @@ case "$platform" in
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [[ "${#missing[@]}" -gt 0 ]]; then
|
if [[ "${#missing[@]}" -gt 0 ]]; then
|
||||||
if [[ "$strict_signed_release" == "true" ]]; then
|
|
||||||
fail_release_preflight "missing macOS signing secrets: ${missing[*]}"
|
|
||||||
fi
|
|
||||||
set_build_state "false" "missing macOS signing secrets: ${missing[*]}"
|
set_build_state "false" "missing macOS signing secrets: ${missing[*]}"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
@ -95,9 +79,6 @@ case "$platform" in
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [[ "${#missing[@]}" -gt 0 ]]; then
|
if [[ "${#missing[@]}" -gt 0 ]]; then
|
||||||
if [[ "$strict_signed_release" == "true" ]]; then
|
|
||||||
fail_release_preflight "missing iOS signing secrets: ${missing[*]}"
|
|
||||||
fi
|
|
||||||
set_build_state "false" "missing iOS signing secrets: ${missing[*]}"
|
set_build_state "false" "missing iOS signing secrets: ${missing[*]}"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user