Skip to content
Closed
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions .github/workflows/build-kits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,37 +38,6 @@ jobs:
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_${{ env.XCODE_VERSION }}.app

- name: Resolve SPM dependencies
run: |
SCHEME=$(echo '${{ toJson(matrix.kit.schemes) }}' | jq -r '.[0].scheme')
PROJECT="$(ls -d ${{ matrix.kit.local_path }}/*.xcodeproj | head -1)"

xcodebuild -resolvePackageDependencies -project "$PROJECT" \
-scheme "$SCHEME" -derivedDataPath DerivedData

- name: Build kit schemes
run: |
echo '${{ toJson(matrix.kit.schemes) }}' | jq -c '.[]' | while IFS= read -r ENTRY; do
SCHEME=$(echo "$ENTRY" | jq -r '.scheme')
DEST=$(echo "$ENTRY" | jq -r '.destination')

if [ -d "${{ matrix.kit.local_path }}/$SCHEME.xcodeproj" ]; then
PROJECT="${{ matrix.kit.local_path }}/$SCHEME.xcodeproj"
else
PROJECT="$(ls -d ${{ matrix.kit.local_path }}/*.xcodeproj | head -1)"
fi

xcodebuild build -project "$PROJECT" -scheme "$SCHEME" \
-destination "generic/platform=$DEST" \
-derivedDataPath DerivedData \
CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO

xcodebuild build -project "$PROJECT" -scheme "$SCHEME" \
-destination "generic/platform=$DEST Simulator" \
-derivedDataPath DerivedData \
CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
done

- name: Build SPM-Swift-Example
run: |
PROJECT="$(ls -d ${{ matrix.kit.local_path }}/Example/SPM-Swift-Example/*.xcodeproj | head -1)"
Expand Down
91 changes: 1 addition & 90 deletions .github/workflows/release-ecosystem-from-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,93 +35,10 @@ jobs:
- id: set
run: echo "matrix=$(jq -c . kits/matrix.json)" >> "$GITHUB_OUTPUT"

build-kits:
name: Build ${{ matrix.kit.name }}
needs: load-matrix
runs-on: macOS-latest
env:
XCODE_VERSION: "16.4"
strategy:
fail-fast: false
matrix:
kit: ${{ fromJson(needs.load-matrix.outputs.matrix) }}

steps:
- name: Checkout monorepo
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_${{ env.XCODE_VERSION }}.app

- name: Build kit xcframeworks
shell: bash
run: |
SCHEMES_JSON='${{ toJson(matrix.kit.schemes) }}'
LOCAL_PATH="${{ matrix.kit.local_path }}"
BUILD_SETTINGS="CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES"

mkdir -p archives xcframeworks

MODULES=$(echo "$SCHEMES_JSON" | jq -r '.[].module' | sort -u)

for MODULE in $MODULES; do
XCFRAMEWORK_ARGS=""

while IFS= read -r ENTRY; do
SCHEME=$(echo "$ENTRY" | jq -r '.scheme')
DEST=$(echo "$ENTRY" | jq -r '.destination')

if [ -d "$LOCAL_PATH/$SCHEME.xcodeproj" ]; then
PROJECT="$LOCAL_PATH/$SCHEME.xcodeproj"
else
PROJECT="$(ls -d "$LOCAL_PATH"/*.xcodeproj | head -1)"
fi

ARCHIVE_DEVICE="archives/${MODULE}-${DEST}"
ARCHIVE_SIM="archives/${MODULE}-${DEST}_Simulator"

case "$DEST" in
iOS)
PLATFORM_DEVICE="generic/platform=iOS"
PLATFORM_SIM="generic/platform=iOS Simulator"
;;
tvOS)
PLATFORM_DEVICE="generic/platform=tvOS"
PLATFORM_SIM="generic/platform=tvOS Simulator"
;;
*)
echo "::error::Unknown destination: $DEST"
exit 1
;;
esac

xcodebuild archive -project "$PROJECT" -scheme "$SCHEME" \
-destination "$PLATFORM_DEVICE" -archivePath "$ARCHIVE_DEVICE" $BUILD_SETTINGS
xcodebuild archive -project "$PROJECT" -scheme "$SCHEME" \
-destination "$PLATFORM_SIM" -archivePath "$ARCHIVE_SIM" $BUILD_SETTINGS

XCFRAMEWORK_ARGS+=" -archive ${ARCHIVE_DEVICE}.xcarchive -framework ${MODULE}.framework"
XCFRAMEWORK_ARGS+=" -archive ${ARCHIVE_SIM}.xcarchive -framework ${MODULE}.framework"
done < <(echo "$SCHEMES_JSON" | jq -c ".[] | select(.module == \"$MODULE\")")

xcodebuild -create-xcframework $XCFRAMEWORK_ARGS -output "xcframeworks/${MODULE}.xcframework"
(cd xcframeworks && zip -r "${MODULE}.xcframework.zip" "${MODULE}.xcframework" && rm -rf "${MODULE}.xcframework")
done

rm -rf archives

- name: Upload xcframework artifacts
uses: actions/upload-artifact@v4
with:
name: xcframework-${{ matrix.kit.name }}
path: xcframeworks/*.xcframework.zip

mirror-and-release-kits:
name: Mirror & Release ${{ matrix.kit.name }}
runs-on: macOS-latest
needs: [load-matrix, build-kits]
needs: [load-matrix]
env:
DEST_ORG: mparticle-integrations
strategy:
Expand All @@ -135,11 +52,6 @@ jobs:
with:
fetch-depth: 0

- name: Download xcframework artifacts
uses: actions/download-artifact@v4
with:
name: xcframework-${{ matrix.kit.name }}

- name: Get ecosystem version
id: version
run: |
Expand Down Expand Up @@ -188,7 +100,6 @@ jobs:
owner: ${{ env.DEST_ORG }}
repo: ${{ matrix.kit.dest_repo }}
token: ${{ steps.generate-token.outputs.token }}
artifacts: "*.xcframework.zip"
body: |
${{ steps.release-notes.outputs.release_notes }}

Expand Down
26 changes: 0 additions & 26 deletions kits/adjust/adjust-5/Sources/Info.plist

This file was deleted.

Loading
Loading