File tree Expand file tree Collapse file tree 1 file changed +22
-15
lines changed Expand file tree Collapse file tree 1 file changed +22
-15
lines changed Original file line number Diff line number Diff line change @@ -28,21 +28,6 @@ GITLAB_UI_SRC="$SRC/shared/GitLab.UI.Avalonia"
28
28
# Build parameters
29
29
FRAMEWORK=net6.0
30
30
31
- TEST_ARCH=` uname -m`
32
- case $TEST_ARCH in
33
- " x86_64" )
34
- RUNTIME=" osx-x64"
35
- ;;
36
- " arm64" )
37
- RUNTIME=" osx-arm64"
38
- ;;
39
- * )
40
- die " Unknown architecture '$TEST_ARCH '"
41
- ;;
42
- esac
43
-
44
- echo " Building for runtime '$RUNTIME '"
45
-
46
31
# Parse script arguments
47
32
for i in " $@ "
48
33
do
@@ -55,6 +40,10 @@ case "$i" in
55
40
PAYLOAD=" ${i#* =} "
56
41
shift # past argument=value
57
42
;;
43
+ --runtime=* )
44
+ RUNTIME=" ${i#* =} "
45
+ shift # past argument=value
46
+ ;;
58
47
--symbol-output=* )
59
48
SYMBOLOUT=" ${i#* =} "
60
49
;;
@@ -64,6 +53,24 @@ case "$i" in
64
53
esac
65
54
done
66
55
56
+ # Determine a runtime if one was not provided
57
+ if [ -z " $RUNTIME " ]; then
58
+ TEST_ARCH=` uname -m`
59
+ case $TEST_ARCH in
60
+ " x86_64" )
61
+ RUNTIME=" osx-x64"
62
+ ;;
63
+ " arm64" )
64
+ RUNTIME=" osx-arm64"
65
+ ;;
66
+ * )
67
+ die " Unknown architecture '$TEST_ARCH '"
68
+ ;;
69
+ esac
70
+ fi
71
+
72
+ echo " Building for runtime '$RUNTIME '"
73
+
67
74
# Perform pre-execution checks
68
75
CONFIGURATION=" ${CONFIGURATION:= Debug} "
69
76
if [ -z " $PAYLOAD " ]; then
You can’t perform that action at this time.
0 commit comments