Skip to content

Commit e36c9ef

Browse files
committed
WIP
1 parent 7d3c9e9 commit e36c9ef

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)