Skip to content

main.yml: add build on Xcode 15.4 and 16.0 #57

main.yml: add build on Xcode 15.4 and 16.0

main.yml: add build on Xcode 15.4 and 16.0 #57

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
branches: "*"
jobs:
build:
strategy:
matrix:
include:
- xcode: "16.0" # Swift 6
macOS: "14"
iOS: "17.0"
- xcode: "15.4" # Swift 5.9
macOS: "14"
iOS: "17.0"
fail-fast: false
runs-on: macos-${{ matrix.macOS }}
name: Build with Xcode ${{ matrix.xcode }} on macOS ${{ matrix.macOS }}
steps:
- uses: actions/checkout@v3
- name: Xcode Select Version
uses: mobiledevops/xcode-select-version-action@v1
with:
xcode-select-version: ${{ matrix.xcode }}
- run: xcodebuild -version
- name: Test macOS with Xcode ${{ matrix.xcode }}
run: |
set -e
set -o pipefail
xcodebuild test -scheme SwiftSpellbook-Package -destination "platform=macOS" SWIFT_ACTIVE_COMPILATION_CONDITIONS="SPELLBOOK_SLOW_CI_x20" | xcpretty
# Temporary disabled
# - name: Test iOS with Xcode ${{ matrix.xcode }}
# run: |
# set -e
# set -o pipefail
# xcodebuild test -scheme SwiftSpellbook-Package -sdk iphonesimulator -destination "$IOS_DEVICE" SWIFT_ACTIVE_COMPILATION_CONDITIONS="SPELLBOOK_SLOW_CI_x20" | xcpretty
# env:
# IOS_DEVICE: "platform=iOS Simulator,OS=${{ matrix.iOS }},name=iPhone 14"