Skip to content

Commit 5b21af9

Browse files
committed
use maxim-lobanov/setup-xcode@v1 to select Xcode version
Signed-off-by: David Nadoba <[email protected]>
1 parent f105267 commit 5b21af9

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

.github/workflows/swift.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,15 @@ jobs:
1111
runs-on: macos-latest
1212
strategy:
1313
matrix:
14-
xcode: [
15-
'/Applications/Xcode_12.5.1.app/Contents/Developer',
16-
'/Applications/Xcode_13.0.app/Contents/Developer',
17-
]
14+
xcode: ['12.5.1', '13.0']
1815

1916
steps:
2017
- uses: actions/checkout@v2
21-
18+
- uses: maxim-lobanov/setup-xcode@v1
19+
with:
20+
xcode-version: ${{ matrix.xcode }}
2221
- name: Test on iOS Simulator
23-
env:
24-
DEVELOPER_DIR: ${{ matrix.xcode }}
22+
2523
run: >
2624
xcodebuild test
2725
-scheme RSocket-Package
@@ -32,8 +30,6 @@ jobs:
3230
-destination:'platform=iOS Simulator,name=iPhone 12'
3331
3432
- name: Test on macOS
35-
env:
36-
DEVELOPER_DIR: ${{ matrix.xcode }}
3733
run: >
3834
xcodebuild test
3935
-scheme RSocket-Package
@@ -46,13 +42,13 @@ jobs:
4642
runs-on: macos-latest
4743
strategy:
4844
matrix:
49-
xcode: [
50-
'/Applications/Xcode_12.5.1.app/Contents/Developer',
51-
'/Applications/Xcode_13.0.app/Contents/Developer',
52-
]
45+
xcode: ['12.5.1', '13.0']
5346

5447
steps:
5548
- uses: actions/checkout@v2
49+
- uses: maxim-lobanov/setup-xcode@v1
50+
with:
51+
xcode-version: ${{ matrix.xcode }}
5652
- name: Build & Run Performance Tests on macOS
5753
env:
5854
DEVELOPER_DIR: ${{ matrix.xcode }}

0 commit comments

Comments
 (0)