run-command icon indicating copy to clipboard operation
run-command copied to clipboard

Run Matlab executable outside the context of this action

Open externl opened this issue 4 months ago • 2 comments

Hello, sorry if this isn't the correct place to ask this question. The CI/CD testing of our MATLAB library uses a Python script which calls directly calls the matlab binary (among testing and doing other things). So unfortunately we can't directly use this action.

Calling this, for example, fails

$ echo 'frpintf("Hello world\n");' > hello.m
$/opt/hostedtoolcache/MATLAB/2023.2.999/x64/bin/matlab -batch "hello"

License checkout failed.
License Manager Error -1
The license file cannot be found.

This repository seems to use an intermediary command located at $WORKINGDIR/$os/run-matlab-command$bin_ext. Presumably it configures the license or something?

Is there any workaround we can use to be able to call the Matlab executable directly? Like loading the action and calling this run-matlab-command command?

Thanks.

externl avatar Feb 22 '24 18:02 externl