Skip to content

Tracker module extracted #46

Tracker module extracted

Tracker module extracted #46

Workflow file for this run

name: Build XCFramework
on:
pull_request:
push:
branches:
- main
- master
permissions:
contents: read
jobs:
build-xcframework:
runs-on: macos-15
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Xcode version
run: xcodebuild -version
- name: Generate XCFramework
shell: bash
run: |
set -euo pipefail
chmod +x ./scripts/generate_xcframework
./scripts/generate_xcframework
- name: Sanity checks
shell: bash
run: |
set -euo pipefail
XCF="xcframework/Split.xcframework"
test -d "$XCF"
test -f "$XCF/Info.plist"
/usr/bin/plutil -lint "$XCF/Info.plist"
test -d "$XCF/ios-arm64/Split.framework"
test -d "$XCF/ios-arm64_x86_64-simulator/Split.framework"
# Make sure the framework contains Swift module artifacts (BUILD_LIBRARIES_FOR_DISTRIBUTION=YES)
test -d "$XCF/ios-arm64/Split.framework/Modules/Split.swiftmodule"
test -d "$XCF/ios-arm64_x86_64-simulator/Split.framework/Modules/Split.swiftmodule"
test "$(find "$XCF" -type f -name '*.swiftinterface' | wc -l | tr -d ' ')" -gt 0
# No test plans or test bundles inside the distributed framework
if find "$XCF" -type f -name '*.xctestplan' | grep -q .; then
echo "ERROR: Found .xctestplan files inside the XCFramework:"
find "$XCF" -type f -name '*.xctestplan' -print
exit 1
fi
if find "$XCF" -type d -name '*.xctest' | grep -q .; then
echo "ERROR: Found .xctest bundles inside the XCFramework:"
find "$XCF" -type d -name '*.xctest' -print
exit 1
fi
# Script cleanup expectation
test ! -d split_build