Skip to content

Commit f7e169c

Browse files
authored
Move jobs to macOS-12 runner. (Alamofire#3607)
1 parent 6b72d94 commit f7e169c

File tree

1 file changed

+14
-29
lines changed

1 file changed

+14
-29
lines changed

.github/workflows/ci.yml

+14-29
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ jobs:
7272
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire macOS" -destination "platform=macOS" clean test | xcpretty
7373
Catalyst:
7474
name: Test Catalyst
75-
runs-on: macOS-11
75+
runs-on: macOS-12
7676
env:
77-
DEVELOPER_DIR: /Applications/Xcode_13.2.1.app/Contents/Developer
77+
DEVELOPER_DIR: /Applications/Xcode_13.3.1.app/Contents/Developer
7878
timeout-minutes: 10
7979
steps:
8080
- uses: actions/checkout@v2
@@ -84,10 +84,7 @@ jobs:
8484
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire iOS" -destination "platform=macOS" clean test | xcpretty
8585
Latest:
8686
name: Test Latest (iOS, tvOS, watchOS)
87-
runs-on: firebreak
88-
defaults:
89-
run:
90-
shell: "/usr/bin/arch -arch arm64e /bin/zsh {0}"
87+
runs-on: macOS-12
9188
env:
9289
DEVELOPER_DIR: "/Applications/Xcode_13.3.1.app/Contents/Developer"
9390
timeout-minutes: 10
@@ -107,7 +104,7 @@ jobs:
107104
steps:
108105
- uses: actions/checkout@v2
109106
- name: Install Firewalk
110-
run: brew install alamofire/alamofire/firewalk || brew upgrade alamofire/alamofire/firewalk && firewalk &
107+
run: brew install alamofire/alamofire/firewalk && firewalk &
111108
- name: ${{ matrix.name }}
112109
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}" clean test | xcpretty
113110
iOS:
@@ -117,7 +114,7 @@ jobs:
117114
run:
118115
shell: "/usr/bin/arch -arch arm64e /bin/zsh {0}"
119116
env:
120-
DEVELOPER_DIR: "/Applications/Xcode_13.3.app/Contents/Developer"
117+
DEVELOPER_DIR: "/Applications/Xcode_13.3.1.app/Contents/Developer"
121118
timeout-minutes: 10
122119
strategy:
123120
fail-fast: false
@@ -186,9 +183,9 @@ jobs:
186183
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "Alamofire watchOS" -destination "${{ matrix.destination }}" clean test | xcpretty
187184
Thread_Sanitizer:
188185
name: Test Thread Sanitizer
189-
runs-on: macOS-11
186+
runs-on: macOS-12
190187
env:
191-
DEVELOPER_DIR: "/Applications/Xcode_13.2.1.app/Contents/Developer"
188+
DEVELOPER_DIR: "/Applications/Xcode_13.3.1.app/Contents/Developer"
192189
timeout-minutes: 10
193190
strategy:
194191
fail-fast: false
@@ -199,15 +196,15 @@ jobs:
199196
testPlan: "macOS-TS"
200197
name: "macOS Thread Sanitizer"
201198
- scheme: "Alamofire iOS"
202-
destination: "OS=15.2,name=iPhone 13 Pro"
199+
destination: "OS=15.4,name=iPhone 13 Pro"
203200
testPlan: "iOS-TS"
204201
name: "iOS Thread Sanitizer"
205202
- scheme: "Alamofire tvOS"
206-
destination: "OS=15.2,name=Apple TV"
203+
destination: "OS=15.4,name=Apple TV"
207204
testPlan: "tvOS-TS"
208205
name: "tvOS Thread Sanitizer"
209206
- scheme: "Alamofire watchOS"
210-
destination: "OS=8.3,name=Apple Watch Series 7 - 45mm"
207+
destination: "OS=8.5,name=Apple Watch Series 7 - 45mm"
211208
testPlan: "watchOS-TS"
212209
name: "watchOS Thread Sanitizer"
213210
steps:
@@ -217,21 +214,6 @@ jobs:
217214
- name: ${{ matrix.name }}
218215
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "Alamofire.xcodeproj" -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}" -testPlan "${{ matrix.testPlan }}" clean test | xcpretty
219216
SPM:
220-
name: Test with SPM
221-
runs-on: firebreak
222-
defaults:
223-
run:
224-
shell: "/usr/bin/arch -arch arm64e /bin/zsh {0}"
225-
env:
226-
DEVELOPER_DIR: "/Applications/Xcode_13.3.1.app/Contents/Developer"
227-
timeout-minutes: 10
228-
steps:
229-
- uses: actions/checkout@v2
230-
- name: Install Firewalk
231-
run: brew install alamofire/alamofire/firewalk || brew upgrade alamofire/alamofire/firewalk && firewalk &
232-
- name: Test SPM
233-
run: swift test -c debug
234-
SPM_Older:
235217
name: Test with SPM
236218
runs-on: ${{ matrix.runsOn }}
237219
env:
@@ -241,6 +223,9 @@ jobs:
241223
fail-fast: false
242224
matrix:
243225
include:
226+
- xcode: "Xcode_13.3.1.app"
227+
runsOn: macOS-12
228+
name: "macOS 12, SPM 5.6 Build"
244229
- xcode: "Xcode_13.2.1.app"
245230
runsOn: macOS-11
246231
name: "macOS 11, SPM 5.5 Build"
@@ -286,7 +271,7 @@ jobs:
286271
- uses: seanmiddleditch/gha-setup-vsdevenv@master
287272
- name: Install Swift
288273
run: |
289-
Install-Binary -Url "https://download.swift.org/swift-5.6.1-release/windows10/swift-5.6.1-RELEASE/swift-5.6.1-RELEASE-windows10.exe" -Name "installer.exe" -ArgumentList ("-q")
274+
Install-Binary -Url "https://download.swift.org/swift-5.6-release/windows10/swift-5.6-RELEASE/swift-5.6-RELEASE-windows10.exe" -Name "installer.exe" -ArgumentList ("-q")
290275
- name: Set Environment Variables
291276
run: |
292277
echo "SDKROOT=C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

0 commit comments

Comments
 (0)