Skip to content

Commit d4301e4

Browse files
committed
Adding os version in env
1 parent cc94138 commit d4301e4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ios.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,23 @@ jobs:
1818
env:
1919
scheme: ${{ 'SDKHostApp' }}
2020
platform: ${{ 'iOS Simulator' }}
21+
os: ${{ '15.0' }}
2122
run: |
2223
# xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959)
2324
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'`
2425
if [ $scheme = default ]; then scheme=$(cat default); fi
2526
if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi
2627
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
27-
xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device"
28+
xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,os=$os,name=$device"
2829
- name: Test
2930
env:
3031
scheme: ${{ 'SDKHostApp' }}
3132
platform: ${{ 'iOS Simulator' }}
33+
os: ${{ '15.0' }}
3234
run: |
3335
# xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959)
3436
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'`
3537
if [ $scheme = default ]; then scheme=$(cat default); fi
3638
if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi
3739
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
38-
xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device"
40+
xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,os=$os,name=$device"

0 commit comments

Comments
 (0)