Skip to content

Commit baf70f6

Browse files
authored
ci: update to Xcode 14 (#412)
* ci: update to Xcode 14 * Update release.yml * run cocoapods on Xcode 13
1 parent e2827c5 commit baf70f6

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ on:
55
pull_request:
66
branches: '*'
77
env:
8-
CI_XCODE_VER: '/Applications/Xcode_12.5.1.app/Contents/Developer'
8+
CI_XCODE_OLDEST: '/Applications/Xcode_12.5.1.app/Contents/Developer'
99
CI_XCODE_13: '/Applications/Xcode_13.4.1.app/Contents/Developer'
10+
CI_XCODE_LATEST: '/Applications/Xcode_14.0.app/Contents/Developer'
1011

1112
jobs:
1213
xcode-test-ios:
@@ -18,23 +19,23 @@ jobs:
1819
- name: Build-Test
1920
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace Parse.xcworkspace -scheme ParseSwift\ \(iOS\) -destination platform\=iOS\ Simulator,name\=iPhone\ 12\ Pro\ Max -derivedDataPath DerivedData -test-iterations 10 -retry-tests-on-failure clean test | xcpretty
2021
env:
21-
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
22+
DEVELOPER_DIR: ${{ env.CI_XCODE_LATEST }}
2223
- name: Prepare codecov
2324
uses: sersoft-gmbh/swift-coverage-action@v3
2425
id: coverage-files
2526
with:
2627
format: lcov
2728
search-paths: ./DerivedData
2829
env:
29-
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
30+
DEVELOPER_DIR: ${{ env.CI_XCODE_LATEST }}
3031
- name: Upload coverage to Codecov
3132
uses: codecov/codecov-action@v2
3233
with:
3334
files: ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}}
3435
env_vars: IOS
3536
fail_ci_if_error: true
3637
env:
37-
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
38+
DEVELOPER_DIR: ${{ env.CI_XCODE_LATEST }}
3839

3940
xcode-test-macos:
4041
runs-on: macos-12
@@ -51,23 +52,23 @@ jobs:
5152
- name: Build-Test
5253
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace Parse.xcworkspace -scheme ParseSwift\ \(macOS\) -destination platform\=macOS -derivedDataPath DerivedData -test-iterations 10 -retry-tests-on-failure clean test | xcpretty
5354
env:
54-
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
55+
DEVELOPER_DIR: ${{ env.CI_XCODE_LATEST }}
5556
- name: Prepare codecov
5657
uses: sersoft-gmbh/swift-coverage-action@v3
5758
id: coverage-files
5859
with:
5960
format: lcov
6061
search-paths: ./DerivedData
6162
env:
62-
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
63+
DEVELOPER_DIR: ${{ env.CI_XCODE_LATEST }}
6364
- name: Upload coverage to Codecov
6465
uses: codecov/codecov-action@v3
6566
with:
6667
files: ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}}
6768
env_vars: MACOS
6869
fail_ci_if_error: true
6970
env:
70-
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
71+
DEVELOPER_DIR: ${{ env.CI_XCODE_LATEST }}
7172

7273
xcode-test-tvos:
7374
runs-on: macos-12
@@ -78,23 +79,23 @@ jobs:
7879
- name: Build
7980
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace Parse.xcworkspace -scheme ParseSwift\ \(tvOS\) -destination platform\=tvOS\ Simulator,name\=Apple\ TV -derivedDataPath DerivedData -test-iterations 10 -retry-tests-on-failure clean test | xcpretty
8081
env:
81-
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
82+
DEVELOPER_DIR: ${{ env.CI_XCODE_LATEST }}
8283
- name: Prepare codecov
8384
uses: sersoft-gmbh/swift-coverage-action@v3
8485
id: coverage-files
8586
with:
8687
format: lcov
8788
search-paths: ./DerivedData
8889
env:
89-
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
90+
DEVELOPER_DIR: ${{ env.CI_XCODE_LATEST }}
9091
- name: Upload coverage to Codecov
9192
uses: codecov/codecov-action@v3
9293
with:
9394
files: ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}}
9495
env_vars: TVOS
9596
fail_ci_if_error: true
9697
env:
97-
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
98+
DEVELOPER_DIR: ${{ env.CI_XCODE_LATEST }}
9899

99100
xcode-build-watchos:
100101
runs-on: macos-12
@@ -105,13 +106,13 @@ jobs:
105106
- name: Build
106107
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -target ParseSwift\ \(watchOS\) | xcpretty
107108
env:
108-
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
109+
DEVELOPER_DIR: ${{ env.CI_XCODE_LATEST }}
109110
- name: Upload coverage to Codecov
110111
uses: codecov/codecov-action@v3
111112
with:
112113
env_vars: WATCHOS
113114
env:
114-
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
115+
DEVELOPER_DIR: ${{ env.CI_XCODE_LATEST }}
115116

116117
spm-test:
117118
runs-on: macos-12
@@ -128,23 +129,23 @@ jobs:
128129
- name: Build and Test
129130
run: swift test --enable-code-coverage -v
130131
env:
131-
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
132+
DEVELOPER_DIR: ${{ env.CI_XCODE_LATEST }}
132133
- name: Prepare codecov
133134
uses: sersoft-gmbh/swift-coverage-action@v3
134135
id: coverage-files
135136
with:
136137
format: lcov
137138
search-paths: ./.build
138139
env:
139-
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
140+
DEVELOPER_DIR: ${{ env.CI_XCODE_LATEST }}
140141
- name: Upload coverage to Codecov
141142
uses: codecov/codecov-action@v3
142143
with:
143144
files: ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}}
144145
env_vars: SPM
145146
fail_ci_if_error: true
146147
env:
147-
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
148+
DEVELOPER_DIR: ${{ env.CI_XCODE_LATEST }}
148149

149150
spm-test-5_2:
150151
needs: xcode-build-watchos
@@ -154,7 +155,7 @@ jobs:
154155
- name: Build-Test
155156
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace Parse.xcworkspace -scheme ParseSwift\ \(iOS\) -destination platform\=iOS\ Simulator,name\=iPhone\ 11 -derivedDataPath DerivedData clean test | xcpretty
156157
env:
157-
DEVELOPER_DIR: ${{ env.CI_XCODE_VER }}
158+
DEVELOPER_DIR: ${{ env.CI_XCODE_OLDEST }}
158159
- name: Prepare codecov
159160
uses: sersoft-gmbh/swift-coverage-action@v3
160161
id: coverage-files
@@ -168,7 +169,7 @@ jobs:
168169
env_vars: IOS_Earliest
169170
fail_ci_if_error: true
170171
env:
171-
DEVELOPER_DIR: ${{ env.CI_XCODE_VER }}
172+
DEVELOPER_DIR: ${{ env.CI_XCODE_OLDEST }}
172173

173174
linux:
174175
runs-on: ubuntu-18.04
@@ -233,7 +234,7 @@ jobs:
233234
- name: Generate Docs
234235
run: set -o pipefail && env NSUnbufferedIO=YES Scripts/generate-documentation
235236
env:
236-
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
237+
DEVELOPER_DIR: ${{ env.CI_XCODE_LATEST }}
237238

238239
cocoapods:
239240
needs: xcode-build-watchos
@@ -261,4 +262,4 @@ jobs:
261262
- name: Carthage
262263
run: ./Scripts/carthage.sh build --no-skip-current --use-xcframeworks
263264
env:
264-
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
265+
DEVELOPER_DIR: ${{ env.CI_XCODE_LATEST }}

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
types: [published]
55
env:
66
CI_XCODE_13: '/Applications/Xcode_13.4.1.app/Contents/Developer'
7+
CI_XCODE_LATEST: '/Applications/Xcode_14.0.app/Contents/Developer'
78

89
jobs:
910
cocoapods:
@@ -36,4 +37,4 @@ jobs:
3637
run: set -o pipefail && env NSUnbufferedIO=YES Scripts/update-gh-pages-documentation-site
3738
env:
3839
CURRENT_BRANCH_NAME: release
39-
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
40+
DEVELOPER_DIR: ${{ env.CI_XCODE_LATEST }}

0 commit comments

Comments
 (0)