Skip to content

Commit

Permalink
Install Intel version on Apple silicon prior to R2023b
Browse files Browse the repository at this point in the history
  • Loading branch information
mcafaro committed May 6, 2024
1 parent 6985e68 commit be616aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/bat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ jobs:
products: Symbolic_Math_Toolbox
check-matlab: matlabVer = ver('matlab'); assert(~isempty(matlabVer));
check-toolbox: symbolicVer = ver('symbolic'); assert(~isempty(symbolicVer));
- os: macos-14
release: R2023a
check-matlab: matlabVer = ver('matlab'); assert(strcmp(matlabVer.Release,'(R2023a)'));
check-toolbox: symbolicVer = ver('symbolic'); assert(strcmp(symbolicVer.Release,'(R2023a)'));
steps:
- uses: actions/download-artifact@v4
with:
Expand Down
3 changes: 3 additions & 0 deletions src/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export async function install(platform: string, architecture: string, release: s
if (releaseInfo.name < "r2020b") {
return Promise.reject(Error(`Release '${releaseInfo.name}' is not supported. Use 'R2020b' or a later release.`));
}
if (platform === "darwin" && architecture === "arm64" && releaseInfo.name < "r2023b") {
architecture = "x86";
}

await core.group("Preparing system for MATLAB", async () =>
matlab.installSystemDependencies(platform, architecture, releaseInfo.name)
Expand Down

0 comments on commit be616aa

Please sign in to comment.