Skip to content

Commit 64aecb2

Browse files
authored
Configure matrix for testing against Xcode 14 and 15 (#328)
* Configure matrix for testing against Xcode 14 and 15 * Continue testing the entire matrix if one job fails
1 parent b104020 commit 64aecb2

2 files changed

Lines changed: 23 additions & 7 deletions

File tree

.github/workflows/build_and_test.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,20 @@ on:
1212
concurrency:
1313
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1414
cancel-in-progress: true
15-
env:
16-
DEVELOPER_DIR: /Applications/Xcode_15.0.1.app/Contents/Developer
1715
jobs:
1816
build:
1917
name: Build and test
2018
runs-on: macos-13
19+
continue-on-error: true
20+
strategy:
21+
matrix:
22+
include:
23+
- destination: iPhone 15 Pro
24+
xcode: 15.0.1
25+
- destination: iPhone 14 Pro
26+
xcode: 14.3.1
27+
env:
28+
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
2129
steps:
2230
- name: Checkout
2331
uses: actions/checkout@v3
@@ -28,10 +36,10 @@ jobs:
2836
xcodebuild build-for-testing\
2937
-scheme Runestone\
3038
-sdk iphonesimulator\
31-
-destination "platform=iOS Simulator,name=iPhone 15 Pro,OS=latest"
39+
-destination "platform=iOS Simulator,name=${{ matrix.destination }},OS=latest"
3240
- name: Test
3341
run: |
3442
xcodebuild test-without-building\
3543
-scheme Runestone\
3644
-sdk iphonesimulator\
37-
-destination "platform=iOS Simulator,name=iPhone 15 Pro,OS=latest"
45+
-destination "platform=iOS Simulator,name=${{ matrix.destination }},OS=latest"

.github/workflows/build_example_project.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,20 @@ on:
1010
concurrency:
1111
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1212
cancel-in-progress: true
13-
env:
14-
DEVELOPER_DIR: /Applications/Xcode_15.0.1.app/Contents/Developer
1513
jobs:
1614
build:
1715
name: Build example project
1816
runs-on: macos-13
17+
continue-on-error: true
18+
strategy:
19+
matrix:
20+
include:
21+
- destination: iPhone 15 Pro
22+
xcode: 15.0.1
23+
- destination: iPhone 14 Pro
24+
xcode: 14.3.1
25+
env:
26+
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
1927
steps:
2028
- name: Checkout
2129
uses: actions/checkout@v3
@@ -27,4 +35,4 @@ jobs:
2735
-project Example/Example.xcodeproj\
2836
-scheme Example\
2937
-sdk iphonesimulator\
30-
-destination "platform=iOS Simulator,name=iPhone 15 Pro,OS=latest"
38+
-destination "platform=iOS Simulator,name=${{ matrix.destination }},OS=latest"

0 commit comments

Comments
 (0)