File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : swift-algorithms ci
2+ on :
3+ push :
4+ branches :
5+ - ' *'
6+ workflow_dispatch :
7+ pull_request :
8+ branches :
9+ - ' *'
10+ jobs :
11+ linux-android :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+ - name : " Test Swift Package on Linux"
16+ run : swift test
17+ - name : " Test Swift Package on Android"
18+ uses : skiptools/swift-android-action@v2
19+ macos-ios :
20+ runs-on : macos-latest
21+ steps :
22+ - uses : actions/checkout@v4
23+ - name : " Test Swift Package on macOS"
24+ run : swift test
25+ - name : " Test Swift Package on iOS"
26+ run : xcodebuild test -sdk "iphonesimulator" -destination "platform=iOS Simulator,name=$(xcrun simctl list devices --json | jq -r '.devices | to_entries[] | .value[] | select(.availability == "(available)" or .isAvailable == true) | .name' | grep -E '^iPhone [0-9]+$' | sort -V | tail -n 1)" -scheme "$(xcodebuild -list -json | jq -r '.workspace.schemes[-1]')"
27+ windows :
28+ runs-on : windows-latest
29+ steps :
30+ - uses : actions/checkout@v4
31+ - name : " Setup Swift on Windows"
32+ uses : compnerd/gha-setup-swift@main
33+ with :
34+ branch : swift-6.1-release
35+ tag : 6.1-RELEASE
36+ - name : " Test Swift Package on Windows"
37+ run : swift test
You can’t perform that action at this time.
0 commit comments