File tree Expand file tree Collapse file tree 2 files changed +26
-12
lines changed Expand file tree Collapse file tree 2 files changed +26
-12
lines changed Original file line number Diff line number Diff line change 1
1
name : firebaseai
2
2
3
+ permissions :
4
+ contents : read
5
+
3
6
on :
4
7
pull_request :
5
8
paths :
19
22
20
23
jobs :
21
24
spm :
22
- name : spm (Xcode ${{ matrix.xcode }} - ${{ matrix.os }})
23
- runs-on : macOS-15
25
+ name : spm (Xcode ${{ matrix.xcode }} - ${{ matrix.platform }})
24
26
strategy :
25
27
matrix :
26
- xcode : ["16.4"]
27
- os : [iOS]
28
28
include :
29
- - os : iOS
29
+ - os : macos-15
30
+ xcode : " 16.4"
31
+ platform : iOS
30
32
device : iPhone 16
33
+ - os : macos-26
34
+ xcode : " 26.0"
35
+ platform : iOS
36
+ device : iPhone 16e
37
+ runs-on : ${{ matrix.os }}
31
38
env :
32
39
SETUP : firebaseai
33
40
SPM : true
34
41
DIR : firebaseai
35
- OS : ${{ matrix.os }}
42
+ OS : ${{ matrix.platform }}
36
43
DEVICE : ${{ matrix.device }}
37
44
TEST : false
38
45
XCODE_VERSION : ${{ matrix.xcode }}
45
52
gem install xcpretty
46
53
- name : Placeholder GoogleService-Info.plist good enough for build only testing.
47
54
run : cp ./mock-GoogleService-Info.plist ./firebaseai/GoogleService-Info.plist
48
- - name : Build and Test SwiftUI (${{ matrix.os }})
55
+ - name : Build and Test SwiftUI (${{ matrix.platform }})
49
56
run : ./scripts/test.sh
Original file line number Diff line number Diff line change 20
20
21
21
set -euo pipefail
22
22
23
- if [ -d " /Applications/Xcode_16.4.app" ]; then
24
- xcode_version=" 16.4"
25
- iphone_version=" 16"
23
+ xcode_version=$( xcodebuild -version | grep Xcode)
24
+ xcode_version=" ${xcode_version/ Xcode / } "
25
+ xcode_major=" ${xcode_version/ .*/ } "
26
+
27
+ if [[ " $xcode_major " -ge 26 ]]; then
28
+ iphone_version=" 17"
29
+ elif [[ " $xcode_major " -ge 16 ]]; then
30
+ iphone_version=" 16"
31
+ elif [[ " $xcode_major " -ge 15 ]]; then
32
+ iphone_version=" 15"
26
33
else
27
- xcode_version= " 15.3 "
28
- iphone_version= " 15 "
34
+ echo " Unsupported Xcode version $ xcode_version; exiting. " 1>&2
35
+ exit 1
29
36
fi
30
37
31
38
# Set default parameters
You can’t perform that action at this time.
0 commit comments