Skip to content

Merge pull request #274 from hajunho/master #72

Merge pull request #274 from hajunho/master

Merge pull request #274 from hajunho/master #72

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
jobs:
mac:
runs-on: macos-15
strategy:
matrix:
xcode: [15.4, 16.3]
fail-fast: false
name: Xcode ${{ matrix.xcode }}
env:
DEVELOPER_DIR: "/Applications/Xcode_${{ matrix.xcode }}.app"
steps:
- uses: actions/checkout@v4
- name: Confirm Swift Version
run: swift --version
- name: xcode build and test
run: |
set -o pipefail
if [ "${{ matrix.xcode }}" = "15.4" ]; then
xcodebuild build-for-testing test-without-building -scheme Kanna -configuration Release SWIFT_VERSION=5.0 ENABLE_TESTABILITY=YES | xcpretty -c
xcodebuild build-for-testing test-without-building -scheme Kanna -configuration Release -sdk iphonesimulator -destination "name=iPhone 15" SWIFT_VERSION=5.0 ENABLE_TESTABILITY=YES | xcpretty -c
xcodebuild build-for-testing test-without-building -scheme Kanna -configuration Release -sdk appletvsimulator -destination "name=Apple TV" SWIFT_VERSION=5.0 ENABLE_TESTABILITY=YES | xcpretty -c
xcodebuild -scheme Kanna -configuration Release -sdk watchsimulator -destination "name=Apple Watch Series 9 (45mm)" SWIFT_VERSION=5.0
else
xcodebuild build-for-testing test-without-building -scheme Kanna -configuration Release SWIFT_VERSION=6.0 ENABLE_TESTABILITY=YES | xcpretty -c
xcodebuild build-for-testing test-without-building -scheme Kanna -configuration Release -sdk iphonesimulator -destination "name=iPhone 16" SWIFT_VERSION=6.0 ENABLE_TESTABILITY=YES | xcpretty -c
xcodebuild build-for-testing test-without-building -scheme Kanna -configuration Release -sdk appletvsimulator -destination "name=Apple TV" SWIFT_VERSION=6.0 ENABLE_TESTABILITY=YES | xcpretty -c
xcodebuild -scheme Kanna -configuration Release -sdk watchsimulator -destination "name=Apple Watch Series 10 (46mm)" SWIFT_VERSION=6.0
fi
- name: swiftpm build and test
run: |
swift build
swift test
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: swiftpm build and test
run: |
swift build
swift test