File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
build :
11
- name : Build and Test default scheme using any available iPhone simulator
11
+ name : Build and Test on iOS
12
12
runs-on : macos-latest
13
13
14
14
steps :
15
15
- name : Checkout
16
16
uses : actions/checkout@v2
17
17
- name : Build
18
- env :
19
- platform : ${{ 'iOS Simulator' }}
20
18
run : |
21
- # xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959)
22
- device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'`
23
- xcodebuild build-for-testing -scheme "swift-bson" -destination "platform=$platform,name=$device"
19
+ xcodebuild build-for-testing -scheme "swift-bson" -destination "platform=iOS Simulator,name=iPhone 13"
24
20
- name : Test
25
- env :
26
- platform : ${{ 'iOS Simulator' }}
27
21
run : |
28
- # xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959)
29
- device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'`
30
- xcodebuild test-without-building -scheme "swift-bson" -destination "platform=$platform,name=$device"
22
+ xcodebuild test-without-building -scheme "swift-bson" -destination "platform=iOS Simulator,name=iPhone 13"
You can’t perform that action at this time.
0 commit comments