feat: ANLSPI-22113 auto web js sdk bridge #277
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SPM | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
spm-build: | |
strategy: | |
matrix: | |
target: [ | |
iOS, | |
macOS, | |
macCatalyst, | |
tvOS, | |
watchOS | |
] | |
os: [macos-13, macos-14] | |
include: | |
- os: macos-13 | |
xcode: Xcode_15.2 | |
- os: macos-14 | |
xcode: Xcode_15.4 | |
- target: iOS | |
platform: iOS Simulator,name=iPhone 14 Pro Max | |
- target: macOS | |
platform: macOS | |
- target: macCatalyst | |
platform: macOS,variant=Mac Catalyst | |
- target: tvOS | |
platform: tvOS Simulator,name=Apple TV | |
- target: watchOS | |
platform: watchOS Simulator,name=Apple Watch Ultra (49mm) | |
- scheme: GrowingAnalytics-Package | |
target: iOS | |
- scheme: GrowingAutotracker | |
target: macCatalyst | |
- scheme: GrowingAutotracker | |
target: tvOS | |
- scheme: GrowingTracker | |
target: macOS | |
- scheme: GrowingTracker | |
target: watchOS | |
- target: visionOS | |
os: macos-14 | |
xcode: Xcode_15.4 | |
platform: visionOS Simulator,name=Apple Vision Pro | |
scheme: GrowingTracker | |
runs-on: ${{ matrix.os }} | |
steps: | |
# https://github.com/actions/runner-images/issues/10559 | |
- name: Download visionOS SDK | |
if: ${{ matrix.target == 'visionOS' }} | |
run: | | |
sudo xcodebuild -runFirstLaunch | |
sudo xcrun simctl list | |
sudo xcodebuild -downloadPlatform visionOS | |
sudo xcodebuild -runFirstLaunch | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Xcode | |
run: sudo xcode-select -switch /Applications/${{ matrix.xcode }}.app | |
- name: Build | |
run: | | |
set -euo pipefail | |
xcodebuild build -scheme ${{ matrix.scheme }} -destination 'platform=${{ matrix.platform }}' \ | |
| xcbeautify --renderer github-actions |