Bump Xcode version #23
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 | |
on: | |
push: | |
branches: | |
- "main" | |
paths: | |
- ".github/workflows/build.yml" | |
- "**.swift" | |
pull_request: | |
paths: | |
- ".github/workflows/build.yml" | |
- "**.swift" | |
concurrency: | |
group: build-${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: macos-14 | |
name: Build ${{ matrix.destination.name }} | |
strategy: | |
matrix: | |
destination: | |
- name: macOS | |
value: "platform=macOS,arch=x86_64" | |
- name: iOS | |
value: "platform=iOS Simulator,name=iPhone 14,OS=latest" | |
- name: tvOS | |
value: "platform=tvOS Simulator,name=Apple TV,OS=latest" | |
- name: watchOS | |
value: "platform=watchOS Simulator,name=Apple Watch Series 8 (41mm),OS=latest" | |
- name: visionOS | |
value: "generic/platform=visionOS" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: "15.0" | |
- name: Build | |
run: |- | |
set -o pipefail && NSUnbufferedIO=YES xcodebuild clean build \ | |
-scheme SmoothGradient \ | |
-destination '${{ matrix.destination.value }}' \ | |
| xcpretty | |
- name: Run tests | |
# only run tests for iOS | |
if: ${{ matrix.destination.name == 'iOS' }} | |
run: |- | |
set -o pipefail && NSUnbufferedIO=YES xcodebuild test \ | |
-scheme SmoothGradient \ | |
-destination '${{ matrix.destination.value }}' \ | |
-sdk iphonesimulator \ | |
| xcpretty |