Skip to content

Disable online licensing #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .github/workflows/bat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down