Files
OSGKeyboard/Scripts/install-xcodegen-ci.sh
T
Rocky fe8f657c8d Fix CI tooling and semantic skill recommendations
Resolve the pinned XcodeGen archive layout and let the keyboard derive bounded clipboard recommendations from the full catalog independently of installation state.
2026-08-22 16:46:37 +08:00

23 lines
811 B
Bash
Executable File

#!/usr/bin/env bash
# Installs the reviewed XcodeGen release into RUNNER_TEMP for GitHub Actions.
set -euo pipefail
VERSION="2.43.0"
SHA256="a4847ed77d3341a4d24049bc4424a3babca4c94ff1dcaaee923eaca2b32c678f"
DESTINATION="${RUNNER_TEMP:?RUNNER_TEMP is required}/xcodegen-$VERSION"
ARCHIVE="$RUNNER_TEMP/xcodegen-$VERSION.zip"
INSTALL_ROOT="$DESTINATION/xcodegen"
curl -fsSL --retry 3 --retry-all-errors --retry-delay 2 \
--connect-timeout 15 --max-time 120 \
"https://github.com/yonaskolb/XcodeGen/releases/download/$VERSION/xcodegen.zip" \
-o "$ARCHIVE"
echo "$SHA256 $ARCHIVE" | shasum -a 256 -c -
rm -rf "$DESTINATION"
mkdir -p "$DESTINATION"
unzip -q "$ARCHIVE" -d "$DESTINATION"
test -x "$INSTALL_ROOT/bin/xcodegen"
echo "$INSTALL_ROOT/bin" >> "$GITHUB_PATH"
"$INSTALL_ROOT/bin/xcodegen" --version