swift-algorithms ci #331
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: swift-algorithms ci | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- '*' | |
schedule: | |
- cron: '45 2,13 * * *' | |
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 "$(xcodebuild -list -json | jq -r '.workspace.schemes[-1]')" | |
windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Setup Swift on Windows" | |
uses: compnerd/gha-setup-swift@main | |
with: | |
branch: swift-6.0.2-release | |
tag: 6.0.2-RELEASE | |
- name: "Test Swift Package on Windows" | |
run: swift test | |