Add visionOS support. #145
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: TestApps | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- 'Sources/**' | |
- 'TestApps/**' | |
- '.github/workflows/test_apps.yml' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- 'Sources/**' | |
- 'TestApps/**' | |
- '.github/workflows/test_apps.yml' | |
# Also allow manual triggering from the github UX to revalidate things. | |
workflow_dispatch: | |
jobs: | |
xcodebuild: | |
runs-on: macos-14 | |
strategy: | |
fail-fast: false | |
matrix: | |
# iOS runs into codesigning requirements to build applications, haven't | |
# found a good way to suppress that and just ensure things build. | |
#PLATFORM: ["iOS", "macOS"] | |
PLATFORM: ["macOS"] | |
CONFIGURATION: ["Debug", "Release"] | |
steps: | |
# The "macos-14" image defaults to 15.0.1, select the newer Xcode. | |
- name: Xcode version | |
run: sudo xcode-select -switch /Applications/Xcode_15.2.app | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
set -eu | |
case "${{matrix.PLATFORM}}" in | |
iOS) | |
XCODE_SCHEME="iOSTestApp" | |
;; | |
macOS) | |
XCODE_SCHEME="OSXTestApp" | |
;; | |
esac | |
set -o pipefail | |
xcodebuild \ | |
-project TestApps/TestApps.xcodeproj \ | |
-scheme "${XCODE_SCHEME}" \ | |
-configuration ${{ matrix.CONFIGURATION }} \ | |
build \ | |
| xcpretty |