Skip to content

[CI] Select Xcode and Simulator version based available version #539

[CI] Select Xcode and Simulator version based available version

[CI] Select Xcode and Simulator version based available version #539

Workflow file for this run

name: Analytics
on:
push:
branches: [ main ]
paths:
- '.github/workflows/analytics.yml'
- 'analytics/**'
- 'scripts/*'
- 'scripts/analytics.sh'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/analytics.yml'
- 'analytics/**'
- 'scripts/*'
- 'scripts/analytics.sh'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
env:
SAMPLE: Analytics
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
jobs:
cocoapods:
name: cocoapods - ${{ matrix.os }}
runs-on: macOS-15
strategy:
matrix:
os: [iOS, catalyst, tvOS, macOS]
xcode: ["16.1"]
include:
- os: iOS
device: iPhone 16
- os: catalyst
device: localhost
- os: tvOS
device: Apple TV 4K (3rd generation) (at 1080p)
scheme: AnalyticsExampleTV
- os: macOS
device: localhost
scheme: AnalyticsExampleMac
env:
SPM: false
LEGACY: false
OS: ${{ matrix.os }}
DEVICE: ${{ matrix.device }}
TEST: true
SCHEME: ${{ matrix.scheme }}
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
cd analytics
gem install bundler
bundle install
gem install xcpretty
bundle exec pod install --repo-update
../scripts/install_prereqs/analytics.sh
- name: Build Swift
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: ""
#TODO: Add `spm` job.