File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,12 @@ jobs:
153153 run : |
154154 set -eo pipefail
155155 xcrun simctl delete all
156- script/create_simulators --platform ${{ env.SCRIPT_PLATFORM }} --version ${{ env.MAJOR }}
156+ OUTPUT=$(script/create_simulators --platform ${{ env.SCRIPT_PLATFORM }} --version ${{ env.MAJOR }} | tee /dev/stderr)
157+ FIRST_UDID=$(printf "%s\n" "$OUTPUT" | awk '/^Created: /{print $NF}' | head -n1)
158+ if [ -n "$FIRST_UDID" ]; then
159+ echo "SIM_UDID=$FIRST_UDID" >> "$GITHUB_ENV"
160+ echo "Captured SIM_UDID=$FIRST_UDID"
161+ fi
157162
158163 - name : List Available Runtimes, Simulators, and Destinations
159164 run : |
@@ -186,11 +191,12 @@ jobs:
186191
187192 - if : ${{ env.PLATFORM != 'watchOS' }}
188193 name : Run Tests
189- uses : mxcl /xcodebuild@v3
194+ uses : davdroman /xcodebuild@destination
190195 with :
191196 xcode : ~26.0
192197 platform : ${{ env.PLATFORM }}
193198 platform-version : ~${{ env.MAJOR }}.${{ env.MINOR }}
199+ destination : ${{ env.SIM_UDID }}
194200 action : test
195201 scheme : SwiftUIIntrospectTests
196202 configuration : Debug
You can’t perform that action at this time.
0 commit comments