-
Notifications
You must be signed in to change notification settings - Fork 12
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
Support for launching matlab via CMake in setup-matlab@v2 #110
Comments
Hi @traversaro, like #89, we do not have an official solution for supporting this type of workflow yet. In the meantime, you may be able to create an adapter script that translates the For example, in your job log, I see CMake is attempting to call # Example:
# matlab -nodisplay -nojvm -batch "disp hello"
# Treat the last arg as the command
# In the example: "disp hello"
cmd=${@: -1}
# Treat everything else but the last two args as args for run-matlab-command
# In the example: -nodisplay -nojvm
args=${@:1:$#-2}
# Call run-matlab-command with the cmd and args
# In the example: ./run-matlab-command "disp hello" -nodisplay -nojvm
run-matlab-command "$cmd" "$args" Then you have to get CMake to call your version of Like I mentioned in #89 though: please note the "run-matlab-command" binary is undocumented and subject to change in the future. |
Good idea, thanks! I was thinking on modifying the CMake build system to use
Sure, thanks! |
Interested to hear if you end up getting things working with v2. |
Hello everyone, thanks a lot for work on MATLAB-related GitHub Actions.
I looked in updating the CI of my projects to setup-matlab@v2 (see robotology/idyntree#1181). As my project is a C++ library that also provides MATLAB bindings, all the tests are handled via CMake test infrastructure (see for example CMake's FindMatlab
matlab_add_unit_test
command). On setup-matlab@v1 everything worked fine, while on setup-matlab@v2 the test fail as matlab is not able to find the license.The problem is similar to #89, but in my case I do not directly set the command used to launch the tests, as that is handled by CMake. I wonder if there is any workaround for launching
matlab
command usingsetup-matlab@v2
? Thanks a lot in advance!The text was updated successfully, but these errors were encountered: