Add tvos/watchos build/tests, bump macos version #53
Workflow file for this run
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] | |
paths: | |
- "**.swift" | |
- "**.podspec" | |
- ".github/workflows/*" | |
pull_request: | |
branches: [master] | |
paths: | |
- "**.swift" | |
- "**.podspec" | |
- ".github/workflows/*" | |
jobs: | |
build-mac: | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: swift build --build-tests | |
- name: Run tests | |
run: swift test --skip-build | |
- name: Pod lint | |
run: pod lib lint | |
- name: Verify Carthage | |
run: carthage build --no-skip-current --verbose --use-xcframeworks --platform macOS | |
build-ios: | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: | | |
swift test -Xswiftc "-sdk" \ | |
-Xswiftc `xcrun --sdk iphonesimulator --show-sdk-path` \ | |
-Xswiftc "-target" \ | |
-Xswiftc "x86_64-apple-ios`xcrun --show-sdk-version --sdk iphonesimulator`-simulator" | |
build-tvos: | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: | | |
swift test -Xswiftc "-sdk" \ | |
-Xswiftc `xcrun --sdk appletvsimulator --show-sdk-path` \ | |
-Xswiftc "-target" \ | |
-Xswiftc "x86_64-apple-tvos`xcrun --show-sdk-version --sdk appletvsimulator`-simulator" | |
build-watchos: | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: | | |
swift test -Xswiftc "-sdk" \ | |
-Xswiftc `xcrun --sdk watchsimulator --show-sdk-path` \ | |
-Xswiftc "-target" \ | |
-Xswiftc "x86_64-apple-watchos`xcrun --show-sdk-version --sdk watchsimulator`-simulator" |