Skip to content

Commit 41342fb

Browse files
authored
Update install.ts
1 parent 79bfab9 commit 41342fb

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/install.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,17 @@ export async function install(platform: string, architecture: string, release: s
2525
return Promise.reject(Error(`Release '${releaseInfo.name}' is not supported. Use 'R2020b' or a later release.`));
2626
}
2727

28-
// Install system dependencies if cloud-hosted
29-
//changing in Simran_dependencies to automatically install dependencies automatically for both self hosted and cloud hosted runners.
30-
await core.group("Preparing system for MATLAB", async () => {
31-
await matlab.installSystemDependencies(platform, architecture, releaseInfo.name);
32-
});
28+
// // Install system dependencies if cloud-hosted
29+
// //changing in Simran_dependencies to automatically install dependencies automatically for both self hosted and cloud hosted runners.
30+
// await core.group("Preparing system for MATLAB", async () => {
31+
// await matlab.installSystemDependencies(platform, architecture, releaseInfo.name);
32+
// });
3333

34+
if (process.env["RUNNER_ENVIRONMENT"] === "github-hosted" && process.env["AGENT_ISSELFHOSTED"] !== "1") {
35+
await core.group("Preparing system for MATLAB", async () => {
36+
await matlab.installSystemDependencies(platform, architecture, releaseInfo.name);
37+
});
38+
}
3439

3540

3641
await core.group("Setting up MATLAB", async () => {

0 commit comments

Comments
 (0)