Skip to content

Commit

Permalink
Configure matrix for testing against Xcode 14 and 15 (#328)
Browse files Browse the repository at this point in the history
* Configure matrix for testing against Xcode 14 and 15

* Continue testing the entire matrix if one job fails
  • Loading branch information
eliperkins authored Nov 30, 2023
1 parent b104020 commit 64aecb2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,20 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
DEVELOPER_DIR: /Applications/Xcode_15.0.1.app/Contents/Developer
jobs:
build:
name: Build and test
runs-on: macos-13
continue-on-error: true
strategy:
matrix:
include:
- destination: iPhone 15 Pro
xcode: 15.0.1
- destination: iPhone 14 Pro
xcode: 14.3.1
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -28,10 +36,10 @@ jobs:
xcodebuild build-for-testing\
-scheme Runestone\
-sdk iphonesimulator\
-destination "platform=iOS Simulator,name=iPhone 15 Pro,OS=latest"
-destination "platform=iOS Simulator,name=${{ matrix.destination }},OS=latest"
- name: Test
run: |
xcodebuild test-without-building\
-scheme Runestone\
-sdk iphonesimulator\
-destination "platform=iOS Simulator,name=iPhone 15 Pro,OS=latest"
-destination "platform=iOS Simulator,name=${{ matrix.destination }},OS=latest"
14 changes: 11 additions & 3 deletions .github/workflows/build_example_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,20 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
DEVELOPER_DIR: /Applications/Xcode_15.0.1.app/Contents/Developer
jobs:
build:
name: Build example project
runs-on: macos-13
continue-on-error: true
strategy:
matrix:
include:
- destination: iPhone 15 Pro
xcode: 15.0.1
- destination: iPhone 14 Pro
xcode: 14.3.1
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -27,4 +35,4 @@ jobs:
-project Example/Example.xcodeproj\
-scheme Example\
-sdk iphonesimulator\
-destination "platform=iOS Simulator,name=iPhone 15 Pro,OS=latest"
-destination "platform=iOS Simulator,name=${{ matrix.destination }},OS=latest"

0 comments on commit 64aecb2

Please sign in to comment.