universal ci #1657
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 ] | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- '*' | |
schedule: | |
- cron: '0 4,16 * * *' | |
jobs: | |
linux-android: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Test Swift Package on Linux" | |
run: swift test | |
- name: "Test Swift Package on Android" | |
uses: skiptools/swift-android-action@v2 | |
macos-ios: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Test Swift Package on macOS" | |
run: swift test | |
- name: "Test Swift Package on iOS" | |
run: xcodebuild test -sdk "iphonesimulator" -destination "platform=iOS Simulator,name=iPhone 15" -scheme "universal-Package" | |
windows: | |
runs-on: windows-latest | |
steps: | |
- uses: compnerd/gha-setup-swift@main | |
with: | |
branch: swift-6.0.3-release | |
tag: 6.0.3-RELEASE | |
- uses: actions/checkout@v4 | |
- run: swift test | |