Skip to content
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

Document matlabroot output #109

Open
externl opened this issue Apr 25, 2024 · 2 comments
Open

Document matlabroot output #109

externl opened this issue Apr 25, 2024 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@externl
Copy link

externl commented Apr 25, 2024

It would be convenient to have an option to export the configured MATLAB install directory as an environment variable. It's useful when linking against MATLALB when developing an add-on. AFAICT, right now you kinda have to guess (on Linux at least).

MATLAB 2023b is located at /opt/hostedtoolcache/MATLAB/2023.2.999/x64

@mcafaro
Copy link
Member

mcafaro commented Apr 25, 2024

The action has a matlabroot output that contains the path to the MATLAB root folder.

- name: Setup MATLAB
  id: setup-matlab
  uses: matlab-actions/setup-matlab@v2

- name: Print MATLAB root folder directly
  run: echo ${{ steps.setup-matlab.outputs.matlabroot }}

- name: Print MATLAB root folder from env var
  env:
    MATLAB_ROOT: ${{ steps.setup-matlab.outputs.matlabroot }}
  run: echo $MATLAB_ROOT

I will keep this issue open as a reminder for us to document this output.

@mcafaro mcafaro changed the title Export MATLAB install directory to environment Document matlabroot output Apr 25, 2024
@mcafaro mcafaro added the documentation Improvements or additions to documentation label Apr 25, 2024
@externl
Copy link
Author

externl commented Apr 25, 2024

Thanks @mcafaro, that's exactly what I'm looking for!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants