Skip to content

Add tvos/watchos build/tests, bump macos version #53

Add tvos/watchos build/tests, bump macos version

Add tvos/watchos build/tests, bump macos version #53

Workflow file for this run

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"