From 4faa624c150b2e82cfd16c0af2fd42a57d2df2c6 Mon Sep 17 00:00:00 2001 From: Mark Cafaro Date: Tue, 8 Apr 2025 12:10:01 -0400 Subject: [PATCH 1/2] Disable online licensing --- .github/workflows/bat.yml | 15 ++++++++------- src/index.ts | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bat.yml b/.github/workflows/bat.yml index b137eec..133793b 100644 --- a/.github/workflows/bat.yml +++ b/.github/workflows/bat.yml @@ -96,11 +96,12 @@ jobs: env: MY_VAR: my_value - # Remove when online batch licensing is the default - - name: Verify MW_BATCH_LICENSING_ONLINE variable set - uses: ./ - with: - command: exp = 'true', act = getenv('MW_BATCH_LICENSING_ONLINE'), assert(strcmp(act, exp), strjoin({act exp}, '\n')); - env: - MY_VAR: my_value + # Disabled while we work out online licensing kinks + # # Remove when online batch licensing is the default + # - name: Verify MW_BATCH_LICENSING_ONLINE variable set + # uses: ./ + # with: + # command: exp = 'true', act = getenv('MW_BATCH_LICENSING_ONLINE'), assert(strcmp(act, exp), strjoin({act exp}, '\n')); + # env: + # MY_VAR: my_value diff --git a/src/index.ts b/src/index.ts index 6067c87..c7e90a8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -18,7 +18,7 @@ async function run() { const helperScript = await matlab.generateScript(workspaceDir, command); const execOpts = { - env: {...process.env, MW_BATCH_LICENSING_ONLINE:'true'} // remove when online batch licensing is the default + env: {...process.env} // , MW_BATCH_LICENSING_ONLINE:'true'} // Disabled while we work out online licensing kinks }; await matlab.runCommand(helperScript, platform, architecture, (cmd,args)=>exec.exec(cmd,args,execOpts), startupOpts); } From 3ce67901f0ed67a9b7d9d4055438262315df30c9 Mon Sep 17 00:00:00 2001 From: Mark Cafaro Date: Tue, 8 Apr 2025 13:31:58 -0400 Subject: [PATCH 2/2] Fix env definition --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index c7e90a8..60696a7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -18,7 +18,7 @@ async function run() { const helperScript = await matlab.generateScript(workspaceDir, command); const execOpts = { - env: {...process.env} // , MW_BATCH_LICENSING_ONLINE:'true'} // Disabled while we work out online licensing kinks + // env: {...process.env, MW_BATCH_LICENSING_ONLINE:'true'} // Disabled while we work out online licensing kinks }; await matlab.runCommand(helperScript, platform, architecture, (cmd,args)=>exec.exec(cmd,args,execOpts), startupOpts); }