File tree 2 files changed +22
-8
lines changed
2 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ integration-tests: &integration-tests
13
13
orb-tools/pack,
14
14
integration-test-install,
15
15
integration-test-install-release,
16
+ integration-test-install-release-macos-intel-on-arm,
16
17
integration-test-run-command,
17
18
integration-test-run-tests
18
19
]
@@ -60,14 +61,16 @@ jobs:
60
61
parameters :
61
62
executor :
62
63
type : executor
64
+ release :
65
+ type : string
63
66
executor : <<parameters.executor>>
64
67
steps :
65
68
- checkout
66
69
- matlab/install :
67
- release : " R2023bU1 "
70
+ release : <<parameters.release>>
68
71
no-output-timeout : 30m
69
72
- matlab/run-command :
70
- command : " assert(strcmp(version('-release'),'2023b') && strcmp(version('-description'),'Update 1' ))"
73
+ command : " exp='<<parameters.release>>'; assert(strcmp(version('-release'),exp(2:6) ))"
71
74
72
75
integration-test-run-command :
73
76
parameters :
@@ -466,6 +469,12 @@ workflows:
466
469
matrix :
467
470
parameters :
468
471
executor : [linux, windows, macos, macos-arm]
472
+ release : [R2023bU1]
473
+
474
+ - integration-test-install-release :
475
+ name : integration-test-install-release-macos-intel-on-arm
476
+ executor : macos-arm
477
+ release : R2023aU1
469
478
470
479
- integration-test-run-command :
471
480
matrix :
Original file line number Diff line number Diff line change @@ -57,11 +57,16 @@ if [[ $os = Linux ]]; then
57
57
wget \
58
58
unzip \
59
59
ca-certificates"
60
- elif [[ $os = Darwin && $arch == arm64 ]]; then
61
- # install Java runtime
62
- jdkpkg=" $tmpdir /jdk.pkg"
63
- curl -sfL https://corretto.aws/downloads/latest/amazon-corretto-8-aarch64-macos-jdk.pkg -o $jdkpkg
64
- sudoIfAvailable -c " installer -pkg $jdkpkg -target /"
60
+ elif [[ $os = Darwin && $arch = arm64 ]]; then
61
+ if [[ $mpmrelease < " r2023b" ]]; then
62
+ # install Rosetta 2
63
+ sudoIfAvailable -c " softwareupdate --install-rosetta --agree-to-license"
64
+ else
65
+ # install Java runtime
66
+ jdkpkg=" $tmpdir /jdk.pkg"
67
+ curl -sfL https://corretto.aws/downloads/latest/amazon-corretto-8-aarch64-macos-jdk.pkg -o $jdkpkg
68
+ sudoIfAvailable -c " installer -pkg $jdkpkg -target /"
69
+ fi
65
70
fi
66
71
67
72
# set os specific options
@@ -72,7 +77,7 @@ if [[ $os = CYGWIN* || $os = MINGW* || $os = MSYS* ]]; then
72
77
mpmdir=$( cygpath " $mpmdir " )
73
78
batchdir=$( cygpath " $batchdir " )
74
79
elif [[ $os = Darwin ]]; then
75
- if [[ $arch == arm64 ]]; then
80
+ if [[ $arch = arm64 && ! $mpmrelease < " r2023b " ]]; then
76
81
mwarch=" maca64"
77
82
else
78
83
mwarch=" maci64"
You can’t perform that action at this time.
0 commit comments