Skip to content

Move CI to macos-14 and use Xcode 14.2. #135

Move CI to macos-14 and use Xcode 14.2.

Move CI to macos-14 and use Xcode 14.2. #135

Workflow file for this run

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