Skip to content

Update main.yml

Update main.yml #3

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
branches: "*"
jobs:
build:
strategy:
matrix:
include:
- xcode: "14.2" # Swift 5.7
macOS: "13"
iOS: "16.0"
- xcode: "15.0" # Swift 5.9
macOS: "13"
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
# sudo xcode-select --switch /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
xcodebuild test -scheme SwiftSpellbook-Package -destination "platform=macOS,name=Any Mac" | xcpretty
- name: Test iOS with Xcode ${{ matrix.xcode }}
run: |
set -e
set -o pipefail
# sudo xcode-select --switch /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
xcodebuild test -scheme SwiftSpellbook-Package -sdk iphonesimulator -destination "$IOS_DEVICE" | xcpretty
env:
IOS_DEVICE: "platform=iOS Simulator,OS=${{ matrix.iOS }},name=iPhone 14"