swift-sqlite ci #1
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-sqlite ci | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- '*' | |
schedule: | |
- cron: '0 6,18 * * *' | |
jobs: | |
test: | |
# emulator fails to launch on ARM macOS with: HVF error: HV_UNSUPPORTED | |
#runs-on: macos-15 | |
# so we need to run on Intel macOS | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Test Swift Package Locally" | |
run: swift test | |
- name: "Test Swift Package on Android" | |
uses: skiptools/swift-android-action@v1 | |
- 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]')" | |
linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: swift test | |
windows: | |
runs-on: windows-latest | |
steps: | |
- uses: compnerd/gha-setup-swift@main | |
with: | |
branch: swift-5.9-release | |
tag: 5.9-RELEASE | |
- uses: actions/checkout@v4 | |
- run: swift build | |
- run: swift test | |