Universal CI #1551
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: Universal CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: | |
- '*' | |
schedule: | |
# run at 10:30AM & 10:30PM UTC | |
- cron: '30 10,22 * * *' | |
jobs: | |
ci-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: swift test | |
ci: | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test macOS | |
run: swift test | |
- name: "Test Swift (5.10) Package on Android" | |
uses: skiptools/swift-android-action@v1 | |
with: | |
swift-version: '5.10' | |
- name: "Cleanup build" | |
run: rm -rf .build | |
- name: "Test Swift (6.0) Package on Android" | |
uses: skiptools/swift-android-action@v1 | |
with: | |
swift-version: '6.0' | |
- name: Test iOS | |
run: xcodebuild test -scheme "universal-Package" -sdk "iphonesimulator" -destination "platform=iOS Simulator,name=iPhone 15" | |
- name: Test watchOS | |
run: xcodebuild test -scheme "universal-Package" -destination "platform=watchOS Simulator,name=Apple Watch Series 8 (45mm)" | |
- name: Test tvOS | |
run: xcodebuild test -scheme "universal-Package" -sdk "appletvsimulator" -destination "platform=tvOS Simulator,name=Apple TV" | |