Merge pull request #270 from tid-kijyun/fix/cocoapods #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
jobs: | |
mac: | |
runs-on: macos-14 | |
strategy: | |
matrix: | |
xcode: [14.3.1, 15.2] | |
fail-fast: false | |
name: Xcode ${{ matrix.xcode }} | |
env: | |
DEVELOPER_DIR: "/Applications/Xcode_${{ matrix.xcode }}.app" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: xcode build and test | |
run: | | |
set -o pipefail | |
xcodebuild build-for-testing test-without-building -scheme Kanna -configuration Release ENABLE_TESTABILITY=YES | xcpretty -c | |
xcodebuild build-for-testing test-without-building -scheme Kanna -configuration Release -sdk iphonesimulator -destination "name=iPhone 15" ENABLE_TESTABILITY=YES | xcpretty -c | |
xcodebuild build-for-testing test-without-building -scheme Kanna -configuration Release -sdk appletvsimulator -destination "name=Apple TV" ENABLE_TESTABILITY=YES | xcpretty -c | |
xcodebuild -scheme Kanna -configuration Release -sdk watchsimulator -destination "name=Apple Watch Series 8 (45mm)" | |
- 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 | |