Skip to content

Commit aa25d27

Browse files
authored
Update ios.yml
1 parent 8fc6b46 commit aa25d27

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.github/workflows/ios.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,15 @@ on:
88

99
jobs:
1010
build:
11-
name: Build and Test default scheme using any available iPhone simulator
11+
name: Build and Test on iOS
1212
runs-on: macos-latest
1313

1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v2
1717
- name: Build
18-
env:
19-
platform: ${{ 'iOS Simulator' }}
2018
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"
2420
- name: Test
25-
env:
26-
platform: ${{ 'iOS Simulator' }}
2721
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"

0 commit comments

Comments
 (0)