1 parent 6c1ca16 commit 2f9b9c4Copy full SHA for 2f9b9c4
1 file changed
.github/workflows/build-watchos.yml
@@ -21,9 +21,13 @@ jobs:
21
22
- name: Select watchOS Simulator
23
run: |
24
- WATCH_SIMULATOR_ID=$(xcrun simctl list devices available | grep -m1 "Apple Watch" | awk -F '[()]' '{print $2}')
25
- echo "WATCH_SIMULATOR_ID=$WATCH_SIMULATOR_ID" >> $GITHUB_ENV
26
- echo "Using watchOS simulator: $WATCH_SIMULATOR_ID"
+ WATCH_SIMULATOR_ID=$(xcrun simctl list devices available | \
+ grep "Apple Watch" | \
+ grep "watchOS Simulator" | \
27
+ grep -m1 -oE '[A-F0-9-]{36}')
28
+
29
+ echo "WATCH_SIMULATOR_ID=$WATCH_SIMULATOR_ID" >> $GITHUB_ENV
30
+ echo "Using watchOS simulator: $WATCH_SIMULATOR_ID"
31
- name: Build watchOS framework
32
33
set -o pipefail && \
0 commit comments