Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure matrix for testing against Xcode 14 and 15 #328

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading