@@ -12,93 +12,103 @@ jobs:
1212 build :
1313 runs-on : ${{ matrix.runsOn }}
1414 env :
15- DEVELOPER_DIR : " /Applications/${{ matrix.xcode }}/Contents/Developer"
15+ DEVELOPER_DIR : /Applications/Xcode_ ${{ matrix.xcode }}.app /Contents/Developer
1616 strategy :
1717 matrix :
1818 include :
1919 - swift : " 5.6"
20- xcode : " Xcode_13 .3.1.app "
20+ xcode : " 13 .3.1"
2121 runsOn : macos-12
2222 - swift : " 5.5"
23- xcode : " Xcode_13 .2.1.app "
23+ xcode : " 13 .2.1"
2424 runsOn : macos-11
2525 - swift : " 5.4"
26- xcode : " Xcode_12 .5.1.app "
26+ xcode : " 12 .5.1"
2727 runsOn : macos-11
28+ - swift : " 5.3"
29+ xcode : " 12.4"
30+ runsOn : macos-10.15
31+ - swift : " 5.2"
32+ xcode : " 11.7"
33+ runsOn : macos-10.15
34+ - swift : " 5.1"
35+ xcode : " 11.3.1"
36+ runsOn : macos-10.15
2837 steps :
2938 - uses : actions/checkout@v2
30- - name : ${{ matrix.name }}
39+ - name : Building in Swift ${{ matrix.swift }}
3140 run : xcodebuild -scheme FloatingPanel SWIFT_VERSION=${{ matrix.swift }} clean build
3241
33- build_compat :
34- runs-on : macos-10.15
35- steps :
36- - uses : actions/checkout@v1
37- - name : " Swift 5.1"
38- run : xcodebuild -scheme FloatingPanel SWIFT_VERSION=5.1 clean build
39- env :
40- DEVELOPER_DIR : /Applications/Xcode_11.3.1.app/Contents/Developer
41- - name : " Swift 5.2"
42- run : xcodebuild -scheme FloatingPanel SWIFT_VERSION=5.2 clean build
43- env :
44- DEVELOPER_DIR : /Applications/Xcode_11.7.app/Contents/Developer
45- - name : " Swift 5.3"
46- run : xcodebuild -scheme FloatingPanel SWIFT_VERSION=5.3 clean build
47- env :
48- DEVELOPER_DIR : /Applications/Xcode_12.4.app/Contents/Developer
49-
50- testing :
51- runs-on : macos-11
52- steps :
53- - uses : actions/checkout@v1
54- - name : " Testing in iOS 14.5"
55- run : xcodebuild clean test -scheme FloatingPanel -workspace FloatingPanel.xcworkspace -destination 'platform=iOS Simulator,OS=14.5,name=iPhone 12 Pro'
56- env :
57- DEVELOPER_DIR : /Applications/Xcode_12.5.1.app/Contents/Developer
58- - name : " Testing in iOS 15.0"
59- run : xcodebuild clean test -scheme FloatingPanel -workspace FloatingPanel.xcworkspace -destination 'platform=iOS Simulator,OS=15.0,name=iPhone 13 Pro'
60- env :
61- DEVELOPER_DIR : /Applications/Xcode_13.0.app/Contents/Developer
62-
63- testing_compat :
64- runs-on : macos-10.15
42+ test :
43+ runs-on : ${{ matrix.runsOn }}
44+ env :
45+ DEVELOPER_DIR : /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
46+ strategy :
47+ matrix :
48+ include :
49+ - os : " 15.4"
50+ xcode : " 13.3.1"
51+ sim : " iPhone 13 Pro"
52+ runsOn : macos-12
53+ - os : " 15.2"
54+ xcode : " 13.2.1"
55+ sim : " iPhone 13 Pro"
56+ runsOn : macos-11
57+ - os : " 15.0"
58+ xcode : " 13.1"
59+ sim : " iPhone 13 Pro"
60+ runsOn : macos-11
61+ - os : " 14.5"
62+ xcode : " 12.5.1"
63+ sim : " iPhone 12 Pro"
64+ runsOn : macos-11
65+ - os : " 14.4"
66+ xcode : " 12.4"
67+ sim : " iPhone 12 Pro"
68+ runsOn : macos-10.15
69+ - os : " 13.7"
70+ xcode : " 11.7"
71+ sim : " iPhone 11 Pro"
72+ runsOn : macos-10.15
6573 steps :
66- - uses : actions/checkout@v1
67- - name : " Testing in iOS 13.7"
68- run : xcodebuild clean test -scheme FloatingPanel -workspace FloatingPanel.xcworkspace -destination 'platform=iOS Simulator,OS=13.7,name=iPhone 11 Pro'
69- env :
70- DEVELOPER_DIR : /Applications/Xcode_11.7.app/Contents/Developer
71- - name : " Testing in iOS 14.4"
72- run : xcodebuild clean test -scheme FloatingPanel -workspace FloatingPanel.xcworkspace -destination 'platform=iOS Simulator,OS=14.4,name=iPhone 12 Pro'
73- env :
74- DEVELOPER_DIR : /Applications/Xcode_12.4.app/Contents/Developer
74+ - uses : actions/checkout@v2
75+ - name : Testing in iOS ${{ matrix.os }}
76+ run : xcodebuild clean test -scheme FloatingPanel -workspace FloatingPanel.xcworkspace -destination 'platform=iOS Simulator,OS=${{ matrix.os }},name=${{ matrix.sim }}'
7577
7678 example :
7779 runs-on : macos-12
7880 env :
7981 DEVELOPER_DIR : /Applications/Xcode_13.3.1.app/Contents/Developer
82+ strategy :
83+ matrix :
84+ include :
85+ - example : " Maps"
86+ - example : " Stocks"
87+ - example : " Samples"
8088 steps :
8189 - uses : actions/checkout@v2
82- - name : " Build Maps"
83- run : xcodebuild -workspace FloatingPanel.xcworkspace -scheme Maps -sdk iphonesimulator clean build
84- - name : " Build Stocks"
85- run : xcodebuild -workspace FloatingPanel.xcworkspace -scheme Stocks -sdk iphonesimulator clean build
86- - name : " Build Samples"
87- run : xcodebuild -workspace FloatingPanel.xcworkspace -scheme Samples -sdk iphonesimulator clean build
90+ - name : Building ${{ matrix.example }}
91+ run : xcodebuild -workspace FloatingPanel.xcworkspace -scheme ${{ matrix.example }} -sdk iphonesimulator clean build
8892
8993 swiftpm :
9094 runs-on : macos-12
9195 env :
9296 DEVELOPER_DIR : /Applications/Xcode_13.3.1.app/Contents/Developer
97+ strategy :
98+ matrix :
99+ include :
100+ - target : " arm64-apple-ios15.4"
101+ - target : " arm64-apple-ios15.4-simulator"
102+ - target : " x86_64-apple-ios15.4-simulator"
93103 steps :
94104 - uses : actions/checkout@v2
95- - name : " Swift Package build"
96- run : swift build -Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" -Xswiftc "-target" -Xswiftc "x86_64-apple-ios14.3-simulator "
105+ - name : " Swift Package Manager build"
106+ run : swift build -Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" -Xswiftc "-target" -Xswiftc "${{ matrix.target }} "
97107
98108 carthage :
99109 runs-on : macos-11
100110 steps :
101- - uses : actions/checkout@v1
111+ - uses : actions/checkout@v2
102112 - name : " Carthage build"
103113 run : carthage build --use-xcframeworks --no-skip-current
104114
0 commit comments