1
1
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md
2
+ # https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md
2
3
# https://github.com/actions/cache/blob/ff937cc95032836a535d249de4ce2fc52aeae834/examples.md
3
4
4
5
15
16
runs-on : macos-12
16
17
17
18
steps :
18
- - name : Switch To Xcode 13.1
19
- run : sudo xcode-select -switch /Applications/Xcode_13.1 .app
19
+ - name : Switch To Xcode 14.2
20
+ run : sudo xcode-select -switch /Applications/Xcode_14.2 .app
20
21
21
22
- name : Checkout repository
22
23
uses : actions/checkout@v1
@@ -26,14 +27,60 @@ jobs:
26
27
- name : Build
27
28
run : swift build -Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" -Xswiftc "-target" -Xswiftc "x86_64-apple-ios15.0-simulator"
28
29
30
+ ios_16 :
31
+ name : iOS 16
32
+
33
+ runs-on : macos-12
34
+
35
+ steps :
36
+ - name : Switch To Xcode 14.2
37
+ run : sudo xcode-select -switch /Applications/Xcode_14.2.app
38
+
39
+ - name : Checkout repository
40
+ uses : actions/checkout@v1
41
+
42
+ # Build Caching
43
+
44
+ - name : Cache Bundler
45
+ uses : actions/cache@v2
46
+ with :
47
+ path : vendor/bundle
48
+ key : ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
49
+ restore-keys : |
50
+ ${{ runner.os }}-gems-
51
+
52
+ - name : Cache Cocoapods
53
+ uses : actions/cache@v2
54
+ with :
55
+ path : Pods
56
+ key : ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
57
+ restore-keys : |
58
+ ${{ runner.os }}-pods-
59
+
60
+ # Install & Build
61
+
62
+ - name : Bundle install
63
+ run : |
64
+ bundle config path vendor/bundle
65
+ bundle install --jobs 4 --retry 3
66
+
67
+ - name : Pod Install
68
+ run : bundle exec pod install --repo-update
69
+
70
+ - name : Run Tests
71
+ run : Scripts/run_ios16_tests.sh
72
+
29
73
ios_15 :
30
74
name : iOS 15
31
75
32
- runs-on : macos-11
76
+ runs-on : macos-12
33
77
34
78
steps :
35
- - name : Switch To Xcode 13.1
36
- run : sudo xcode-select -switch /Applications/Xcode_13.1.app
79
+ - name : Switch To Xcode 14
80
+ run : sudo xcode-select -switch /Applications/Xcode_14.2.app
81
+
82
+ - name : Install iOS 15.2
83
+ run : xcversion simulators --install="iOS 15.2"
37
84
38
85
- name : Checkout repository
39
86
uses : actions/checkout@v1
@@ -72,11 +119,14 @@ jobs:
72
119
ios_14 :
73
120
name : iOS 14
74
121
75
- runs-on : macos-11
122
+ runs-on : macos-12
76
123
77
124
steps :
78
- - name : Switch To Xcode 12.5.1
79
- run : sudo xcode-select -switch /Applications/Xcode_12.5.1.app
125
+ - name : Switch To Xcode 14
126
+ run : sudo xcode-select -switch /Applications/Xcode_14.2.app
127
+
128
+ - name : Install iOS 14
129
+ run : xcversion simulators --install="iOS 14.5"
80
130
81
131
- name : Checkout repository
82
132
uses : actions/checkout@v1
0 commit comments