@@ -86,10 +86,10 @@ jobs:
86
86
SIMPLATFORM="iOS"
87
87
SIMDEVICE="iPhone\s\d{2}\s"
88
88
REGEX="m/\{\splatform:(.*\sSimulator),.*OS:(\d{1,2}\.\d),.*name:([a-zA-Z0-9\(\)\s]*)\s\}/g"
89
- SIMPATFORMLIST=$(cat destinations.txt | perl -nle 'if ('$REGEX') { $p = $1; $os = $2; $n = $3 ; if ($p =~ /'$SIMPLATFORM'/ and $n =~ /'$SIMDEVICE'/) { print "- ${n } (${p }) (${os})"; } }')
89
+ SIMPATFORMLIST=$(cat destinations.txt | perl -nle 'if ('$REGEX') { ($plat, $os, $name) = ($1, $2, $3) ; if ($plat =~ /'$SIMPLATFORM'/ and $name =~ /'$SIMDEVICE'/) { print "- ${name } (${plat }) (${os})"; } }')
90
90
echo "Available $SIMPLATFORM simulators:"
91
91
echo "$SIMPATFORMLIST"
92
- DESTNAME=$(cat destinations.txt | perl -nle 'if ('$REGEX') { $p = $1; $os = $2; $n = $3 ; if ($1 =~ /'$SIMPLATFORM'/ and $n =~ /'$SIMDEVICE'/) { print $n ; } }' | sort -r | head -n 1)
92
+ DESTNAME=$(cat destinations.txt | perl -nle 'if ('$REGEX') { ($plat, $os, $name) = ($1, $2, $3) ; if ($plat =~ /'$SIMPLATFORM'/ and $name =~ /'$SIMDEVICE'/) { print $name ; } }' | sort -rV | head -n 1)
93
93
echo "Using device name \"$DESTNAME\""
94
94
echo "DESTNAME=$DESTNAME" >> "$GITHUB_ENV"
95
95
- name : Unit Tests
@@ -112,10 +112,10 @@ jobs:
112
112
SIMPLATFORM="tvOS"
113
113
SIMDEVICE="Apple\sTV"
114
114
REGEX="m/\{\splatform:(.*\sSimulator),.*OS:(\d{1,2}\.\d),.*name:([a-zA-Z0-9\(\)\s]*)\s\}/g"
115
- SIMPATFORMLIST=$(cat destinations.txt | perl -nle 'if ('$REGEX') { $p = $1; $os = $2; $n = $3 ; if ($p =~ /'$SIMPLATFORM'/ and $n =~ /'$SIMDEVICE'/) { print "- ${n } (${p }) (${os})"; } }')
115
+ SIMPATFORMLIST=$(cat destinations.txt | perl -nle 'if ('$REGEX') { ($plat, $os, $name) = ($1, $2, $3) ; if ($plat =~ /'$SIMPLATFORM'/ and $name =~ /'$SIMDEVICE'/) { print "- ${name } (${plat }) (${os})"; } }')
116
116
echo "Available $SIMPLATFORM simulators:"
117
117
echo "$SIMPATFORMLIST"
118
- DESTNAME=$(cat destinations.txt | perl -nle 'if ('$REGEX') { $p = $1; $os = $2; $n = $3 ; if ($1 =~ /'$SIMPLATFORM'/ and $n =~ /'$SIMDEVICE'/) { print $n ; } }' | sort -r | head -n 1)
118
+ DESTNAME=$(cat destinations.txt | perl -nle 'if ('$REGEX') { ($plat, $os, $name) = ($1, $2, $3) ; if ($plat =~ /'$SIMPLATFORM'/ and $name =~ /'$SIMDEVICE'/) { print $name ; } }' | sort -rV | head -n 1)
119
119
echo "Using device name \"$DESTNAME\""
120
120
echo "DESTNAME=$DESTNAME" >> "$GITHUB_ENV"
121
121
- name : Unit Tests
@@ -138,10 +138,10 @@ jobs:
138
138
SIMPLATFORM="watchOS"
139
139
SIMDEVICE="Apple\sWatch\sSeries"
140
140
REGEX="m/\{\splatform:(.*\sSimulator),.*OS:(\d{1,2}\.\d),.*name:([a-zA-Z0-9\(\)\s]*)\s\}/g"
141
- SIMPATFORMLIST=$(cat destinations.txt | perl -nle 'if ('$REGEX') { $p = $1; $os = $2; $n = $3 ; if ($p =~ /'$SIMPLATFORM'/ and $n =~ /'$SIMDEVICE'/) { print "- ${n } (${p }) (${os})"; } }')
141
+ SIMPATFORMLIST=$(cat destinations.txt | perl -nle 'if ('$REGEX') { ($plat, $os, $name) = ($1, $2, $3) ; if ($plat =~ /'$SIMPLATFORM'/ and $name =~ /'$SIMDEVICE'/) { print "- ${name } (${plat }) (${os})"; } }')
142
142
echo "Available $SIMPLATFORM simulators:"
143
143
echo "$SIMPATFORMLIST"
144
- DESTNAME=$(cat destinations.txt | perl -nle 'if ('$REGEX') { $p = $1; $os = $2; $n = $3 ; if ($1 =~ /'$SIMPLATFORM'/ and $n =~ /'$SIMDEVICE'/) { print $n ; } }' | sort -r | head -n 1)
144
+ DESTNAME=$(cat destinations.txt | perl -nle 'if ('$REGEX') { ($plat, $os, $name) = ($1, $2, $3) ; if ($plat =~ /'$SIMPLATFORM'/ and $name =~ /'$SIMDEVICE'/) { print $name ; } }' | sort -rV | head -n 1)
145
145
echo "Using device name \"$DESTNAME\""
146
146
echo "DESTNAME=$DESTNAME" >> "$GITHUB_ENV"
147
147
- name : Unit Tests
0 commit comments