File tree Expand file tree Collapse file tree 1 file changed +79
-0
lines changed Expand file tree Collapse file tree 1 file changed +79
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Analytics
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ paths :
7+ - ' .github/workflows/analytics.yml'
8+ - ' analytics/**'
9+ - ' scripts/*'
10+ - ' scripts/analytics.sh'
11+ pull_request :
12+ branches : [ main ]
13+ paths :
14+ - ' .github/workflows/analytics.yml'
15+ - ' analytics/**'
16+ - ' scripts/*'
17+ - ' scripts/analytics.sh'
18+
19+ workflow_dispatch :
20+
21+ concurrency :
22+ group : ${{ github.workflow }}-${{ github.head_ref || github.ref }}
23+ cancel-in-progress : true
24+
25+ env :
26+ SAMPLE : Analytics
27+ secrets_passphrase : ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}
28+
29+ jobs :
30+ cocoapods :
31+ name : cocoapods - ${{ matrix.os }}
32+ runs-on : macOS-15
33+ strategy :
34+ matrix :
35+ # TODO: Re-enable when ODM2 catalyst support is investigated
36+ # os: [iOS, catalyst, tvOS, macOS]
37+ os : [iOS, tvOS, macOS]
38+ xcode : ["16.4"]
39+ include :
40+ - os : iOS
41+ device : iPhone 16
42+ test : true
43+ # TODO: Re-enable when ODM2 catalyst support is investigated
44+ # - os: catalyst
45+ # device: localhost
46+ # test: false # disabled due to a permissions error on launch (OSStatus -54).
47+ - os : tvOS
48+ device : Apple TV 4K (3rd generation) (at 1080p)
49+ scheme : AnalyticsExampleTV
50+ test : true
51+ - os : macOS
52+ device : localhost
53+ scheme : AnalyticsExampleMac
54+ test : true
55+ env :
56+ SPM : false
57+ LEGACY : false
58+ OS : ${{ matrix.os }}
59+ DEVICE : ${{ matrix.device }}
60+ SCHEME : ${{ matrix.scheme }}
61+ DEVELOPER_DIR : /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
62+ steps :
63+ - name : Checkout
64+ uses : actions/checkout@master
65+ - name : Setup
66+ run : |
67+ cd analytics
68+ gem install bundler
69+ bundle install
70+ gem install xcpretty
71+ bundle exec pod install --repo-update
72+ ../scripts/install_prereqs/analytics.sh
73+ - name : Build Swift
74+ run : ./scripts/test.sh
75+ env :
76+ TEST : ${{ matrix.test }}
77+ SWIFT_SUFFIX : " "
78+
79+ # TODO: Add `spm` job.
You can’t perform that action at this time.
0 commit comments