Skip to content

Commit f74d2e8

Browse files
Update tests.sh
1 parent 3ec17ec commit f74d2e8

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/scripts/tests.sh

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/bin/bash
22

33
ARCH=""
4-
5-
if [ "$1" = "arm" ]; then
4+
5+
if [ $1 = "arm" ]
6+
then
67
ARCH="arm64"
78
else
89
ARCH="x86_64"
@@ -12,18 +13,9 @@ echo "Building with arch: ${ARCH}"
1213

1314
export LC_CTYPE=en_US.UTF-8
1415

15-
DEVICE_ID=$(xcrun xctrace list devices 2>/dev/null | grep -m1 "My Mac" | grep "${ARCH}" | awk -F '[()]' '{print $2}')
16-
17-
if [ -z "$DEVICE_ID" ]; then
18-
echo "Failed to find device ID for arch ${ARCH}"
19-
exit 1
20-
fi
21-
22-
echo "Using device ID: $DEVICE_ID"
23-
2416
set -o pipefail && arch -"${ARCH}" xcodebuild \
2517
-scheme CodeEditSourceEditor \
2618
-derivedDataPath ".build" \
27-
-destination "id=${DEVICE_ID}" \
19+
-destination "platform=macos,arch=${ARCH}" \
2820
-skipPackagePluginValidation \
2921
clean test | xcpretty

0 commit comments

Comments
 (0)