Comments (3)
Interested to hear if you end up getting things working with v2.
from setup-matlab.
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 matlab
command CMake is attempting to call into a run-matlab-command
call.
For example, in your job log, I see CMake is attempting to call matlab -nodisplay -nodesktop -nojvm -batch SOME_COMMAND_HERE
. You could potentially write a bash script named matlab
that does something like this:
# 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 matlab
instead of the matlab
in the MATLAB bin folder. I am not familiar enough with the FindMatlab module to know if it supports doing that.
Like I mentioned in #89 though: please note the "run-matlab-command" binary is undocumented and subject to change in the future.
from setup-matlab.
Good idea, thanks! I was thinking on modifying the CMake build system to use run-matlab-command
, but avoiding to modify the CMake script would be welcome.
Like I mentioned in #89 though: please note the "run-matlab-command" binary is undocumented and subject to change in the future.
Sure, thanks!
from setup-matlab.
Related Issues (20)
- mex won't run on macos-14 apple silicon HOT 2
- Support for 2024a HOT 5
- matlab-actions/run-command fails with error no such file error HOT 2
- Document `matlabroot` output HOT 2
- [BUG] cannot install on macOS latest with version 2.1.1 and matlab R2021a HOT 5
- Consider installing MATLAB for Intel when running on an Apple silicon runner and requesting a release prior to R2023b
- MATLAB won't start on R2020b and R2021a Windows runners (v2-beta) HOT 7
- When will `v2-beta` become `v2`? HOT 4
- run-build and run-tests need to have their version of the run-matlab-command-action updated HOT 1
- Provide an indication of why licensing failed in a private project
- Document the use of 'latest' as release parameter - v2-beta HOT 7
- Run MATLAB from shell with v2? HOT 4
- setup-matlab 2.0 on Windows: no such file or directory: .keep HOT 1
- setup-matlab 2.0 encounters various errors on all platforms HOT 8
- add support for the new osx arm runners HOT 2
- Conflict between `actions/cache` and `setup-matlab@v2`
- `setup-matlab@v2`: issues with Parallel Computing Toolbox HOT 8
- MEX of MATLAB R2023b provided by `setup-matlab@v2` does not work with Xcode 15 and Intel oneAPI 2023 HOT 10
- `setup-matlab@v2` with `cache: true`: Post setup fails randomly (not very often) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from setup-matlab.