hex/ios/ci_scripts/ci_post_clone.sh
Ryan Vogel 99e0600b60 Cut Hex Mobile TestFlight betas with a dedicated release tag
Connect the Anomaly app record and pin the mobile package graph. Cut ios-beta prereleases from dev at the scheduled windows or on dispatch, skipping unchanged mobile inputs instead of creating desktop releases or allocating build numbers locally. Prepare the generated project for the Cloud archive after clone.

Verified actionlint, duplicate and desktop-only skips, strict SwiftPM resolution, and an unsigned Release device archive containing the app, keyboard, and widgets. First Xcode Cloud onboarding and signed distribution are still pending.
2026-11-19 10:35:24 -05:00

16 lines
584 B
Shell
Executable file

#!/bin/sh
set -eu
# The Xcode project is generated; the full dependency graph is checked in.
if [ -n "${CI_PRIMARY_REPOSITORY_PATH:-}" ]; then
cd "$CI_PRIMARY_REPOSITORY_PATH/ios"
else
cd "$(dirname "$0")/.."
fi
command -v xcodegen >/dev/null || brew install xcodegen
xcodegen generate
pins=HEXMobile.xcodeproj/project.xcworkspace/xcshareddata/swiftpm
mkdir -p "$pins"
cp Package.resolved "$pins/Package.resolved"
xcodebuild -resolvePackageDependencies -project HEXMobile.xcodeproj -scheme HEXMobile \
-disableAutomaticPackageResolution -onlyUsePackageVersionsFromResolvedFile