diff --git a/ci_scripts/ci_post_clone.sh b/ci_scripts/ci_post_clone.sh deleted file mode 100755 index 986b22a8..00000000 --- a/ci_scripts/ci_post_clone.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash -set -euo pipefail - -echo "=== ci_post_clone.sh ===" - -# Initialize submodules (needed for vendor/bonsplit SPM package) -echo "Initializing submodules..." -git submodule update --init --recursive - -# Get ghostty submodule SHA -GHOSTTY_SHA=$(git -C "$CI_PRIMARY_REPOSITORY_PATH/ghostty" rev-parse HEAD) -echo "Ghostty SHA: $GHOSTTY_SHA" - -# Download pre-built xcframework from manaflow-ai/ghostty releases -TAG="xcframework-$GHOSTTY_SHA" -URL="https://github.com/manaflow-ai/ghostty/releases/download/$TAG/GhosttyKit.xcframework.tar.gz" - -echo "Downloading xcframework from $URL" - -MAX_RETRIES=30 -RETRY_DELAY=20 - -for i in $(seq 1 $MAX_RETRIES); do - if curl -fSL -o "$CI_PRIMARY_REPOSITORY_PATH/GhosttyKit.xcframework.tar.gz" "$URL"; then - echo "Download succeeded on attempt $i" - break - fi - if [ "$i" -eq "$MAX_RETRIES" ]; then - echo "Failed to download xcframework after $MAX_RETRIES attempts" >&2 - exit 1 - fi - echo "Attempt $i/$MAX_RETRIES failed, retrying in ${RETRY_DELAY}s..." - sleep $RETRY_DELAY -done - -# Extract xcframework to project root -echo "Extracting xcframework..." -cd "$CI_PRIMARY_REPOSITORY_PATH" -tar xzf GhosttyKit.xcframework.tar.gz -rm GhosttyKit.xcframework.tar.gz -test -d GhosttyKit.xcframework -echo "GhosttyKit.xcframework extracted successfully" - -# Download Metal toolchain (required for shader compilation) -echo "Downloading Metal toolchain..." -xcodebuild -downloadComponent MetalToolchain - -echo "=== ci_post_clone.sh done ===" diff --git a/ci_scripts/ci_pre_xcodebuild.sh b/ci_scripts/ci_pre_xcodebuild.sh deleted file mode 100755 index d4def0b5..00000000 --- a/ci_scripts/ci_pre_xcodebuild.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash -set -euo pipefail - -ROOT="${CI_PRIMARY_REPOSITORY_PATH:-$PWD}" -cd "$ROOT" - -echo "ci_pre_xcodebuild: repository root is $ROOT" - -if [ -f "vendor/bonsplit/Package.swift" ]; then - echo "ci_pre_xcodebuild: vendor/bonsplit already present" - exit 0 -fi - -if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then - echo "ci_pre_xcodebuild: attempting submodule init for vendor/bonsplit" - git submodule sync --recursive || true - git submodule update --init --recursive vendor/bonsplit || true -fi - -if [ ! -f "vendor/bonsplit/Package.swift" ]; then - echo "ci_pre_xcodebuild: submodule not present, cloning fallback" - rm -rf vendor/bonsplit - mkdir -p vendor - git clone --depth 1 https://github.com/manaflow-ai/bonsplit.git vendor/bonsplit - - if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then - expected_sha="$(git ls-tree HEAD vendor/bonsplit | awk '{print $3}')" - if [ -n "${expected_sha:-}" ]; then - ( - cd vendor/bonsplit - git fetch --depth 1 origin "$expected_sha" || true - git checkout "$expected_sha" || true - ) - fi - fi -fi - -if [ ! -f "vendor/bonsplit/Package.swift" ]; then - echo "ci_pre_xcodebuild: missing vendor/bonsplit/Package.swift after recovery" >&2 - exit 1 -fi - -echo "ci_pre_xcodebuild: vendor/bonsplit is ready"