We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ec17ec commit f74d2e8Copy full SHA for f74d2e8
1 file changed
.github/scripts/tests.sh
@@ -1,8 +1,9 @@
1
#!/bin/bash
2
3
ARCH=""
4
-
5
-if [ "$1" = "arm" ]; then
+
+if [ $1 = "arm" ]
6
+then
7
ARCH="arm64"
8
else
9
ARCH="x86_64"
@@ -12,18 +13,9 @@ echo "Building with arch: ${ARCH}"
12
13
14
export LC_CTYPE=en_US.UTF-8
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
24
set -o pipefail && arch -"${ARCH}" xcodebuild \
25
-scheme CodeEditSourceEditor \
26
-derivedDataPath ".build" \
27
- -destination "id=${DEVICE_ID}" \
+ -destination "platform=macos,arch=${ARCH}" \
28
-skipPackagePluginValidation \
29
clean test | xcpretty
0 commit comments