From ce9cb793c57420ed31eead761f2681fa9d56d2f9 Mon Sep 17 00:00:00 2001 From: Mark Cafaro Date: Thu, 4 Sep 2025 09:19:04 -0400 Subject: [PATCH 1/2] Set MW_BATCH_LICENSING_ONLINE to true --- .github/workflows/bat.yml | 13 +++++-------- src/index.ts | 2 +- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/bat.yml b/.github/workflows/bat.yml index 133793b..3ee7e00 100644 --- a/.github/workflows/bat.yml +++ b/.github/workflows/bat.yml @@ -96,12 +96,9 @@ jobs: 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 + # 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')); diff --git a/src/index.ts b/src/index.ts index 60696a7..90ded58 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); } From ab4fec5d22bbab804c3a61961de0e58c6810c153 Mon Sep 17 00:00:00 2001 From: Mark Cafaro Date: Thu, 4 Sep 2025 09:21:11 -0400 Subject: [PATCH 2/2] Update comment --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 90ded58..e049d8c 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'} // Remove when online batch licensing is the default }; await matlab.runCommand(helperScript, platform, architecture, (cmd,args)=>exec.exec(cmd,args,execOpts), startupOpts); }