Fix build with Xcode 16 #114
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Example Project | |
on: | |
workflow_dispatch: {} | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build Example Project (Xcode ${{ matrix.xcode }}) | |
runs-on: macos-14 | |
continue-on-error: true | |
strategy: | |
matrix: | |
include: | |
- xcode: 15.2 | |
destination: iPhone 15 Pro | |
os: 17.2 | |
- xcode: 14.3.1 | |
destination: iPhone 14 Pro | |
os: 16.4 | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Check for changed files | |
uses: dorny/paths-filter@v3 | |
id: changes | |
with: | |
filters: | | |
src: | |
- '.github/workflows/build_example_project.yml' | |
- 'Example/**' | |
- 'Sources/**' | |
- name: Build | |
if: steps.changes.outputs.src == 'true' | |
run: | | |
set -o pipefail &&\ | |
xcodebuild build\ | |
-project Example/Example.xcodeproj\ | |
-scheme Example\ | |
-sdk iphonesimulator\ | |
-destination "platform=iOS Simulator,name=${{ matrix.destination }},OS=${{ matrix.os }}"\ | |
| xcbeautify --renderer github-actions |