Skip to content

Commit

Permalink
Create CI build to verify code
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkenso committed Oct 20, 2023
1 parent 248ab5f commit 392f859
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
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
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"

0 comments on commit 392f859

Please sign in to comment.