Skip to content

swift-sqlite ci

swift-sqlite ci #34

Workflow file for this run

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