Skip to content

Configure matrix for testing against Xcode 14 and 15 #45

Configure matrix for testing against Xcode 14 and 15

Configure matrix for testing against Xcode 14 and 15 #45

name: Build Example Project
on:
workflow_dispatch: {}
pull_request:
branches:
- main
paths:
- '.github/workflows/build_example_project.yml'
- 'Example/**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build example project
runs-on: macos-13
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
with:
submodules: recursive
- name: Build
run: |
xcodebuild build\
-project Example/Example.xcodeproj\
-scheme Example\
-sdk iphonesimulator\
-destination "platform=iOS Simulator,name=${{ matrix.destination }},OS=latest"