Wire Forge-native release infrastructure
Some checks failed
Cache: Publish Nix / Publish Nix Cache (push) Waiting to run
Build Rust / Cargo Test (push) Successful in 4m14s
Build Site / Next.js Build (push) Failing after 6s
Infra: OpenTofu / OpenTofu (grafana) (push) Successful in 5s
Lint Governance / BEP Metadata (push) Successful in 0s
Build: Android / Android Rust Core Stub (push) Failing after 23s
Some checks failed
Cache: Publish Nix / Publish Nix Cache (push) Waiting to run
Build Rust / Cargo Test (push) Successful in 4m14s
Build Site / Next.js Build (push) Failing after 6s
Infra: OpenTofu / OpenTofu (grafana) (push) Successful in 5s
Lint Governance / BEP Metadata (push) Successful in 0s
Build: Android / Android Rust Core Stub (push) Failing after 23s
This commit is contained in:
parent
97c569fb35
commit
002bd382e9
199 changed files with 14268 additions and 185 deletions
42
bazel/apple/runner.sh
Executable file
42
bazel/apple/runner.sh
Executable file
|
|
@ -0,0 +1,42 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
command="${1:-}"
|
||||
|
||||
resolve_repo_root() {
|
||||
if [[ -n "${BUILD_WORKSPACE_DIRECTORY:-}" && -f "${BUILD_WORKSPACE_DIRECTORY}/MODULE.bazel" ]]; then
|
||||
printf '%s\n' "$BUILD_WORKSPACE_DIRECTORY"
|
||||
return 0
|
||||
fi
|
||||
|
||||
local dir="$PWD"
|
||||
while [[ "$dir" != "/" ]]; do
|
||||
if [[ -f "$dir/MODULE.bazel" && -d "$dir/Apple" ]]; then
|
||||
printf '%s\n' "$dir"
|
||||
return 0
|
||||
fi
|
||||
dir="$(dirname "$dir")"
|
||||
done
|
||||
|
||||
echo "unable to resolve Burrow repository root" >&2
|
||||
return 1
|
||||
}
|
||||
|
||||
repo_root="$(resolve_repo_root)"
|
||||
cd "$repo_root"
|
||||
|
||||
case "$command" in
|
||||
release-ios)
|
||||
Scripts/ci/package-apple-artifacts.sh ios
|
||||
;;
|
||||
release-macos)
|
||||
Scripts/ci/package-apple-artifacts.sh macos
|
||||
;;
|
||||
release-all)
|
||||
Scripts/ci/package-apple-artifacts.sh all
|
||||
;;
|
||||
*)
|
||||
echo "unknown apple runner command: ${command}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
Loading…
Add table
Add a link
Reference in a new issue