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

Update MATLAB action to 2024a #2037

Closed
pepone opened this issue Apr 9, 2024 · 3 comments · Fixed by #2109
Closed

Update MATLAB action to 2024a #2037

pepone opened this issue Apr 9, 2024 · 3 comments · Fixed by #2109
Assignees
Labels
bug ci continuous integration
Milestone

Comments

@pepone
Copy link
Member

pepone commented Apr 9, 2024

- name: Setup MATLAB
uses: matlab-actions/setup-matlab@v2
if: matrix.language == 'matlab'
- name: Set MATLAB_HOME
run: |
echo "MATLAB_HOME=/opt/hostedtoolcache/MATLAB/2023.2.999/x64" >> $GITHUB_ENV
shell: bash
if: matrix.language == 'matlab' && runner.os == 'Linux'
- name: Set MATLAB_HOME
run: |
echo "MATLAB_HOME=C:\Program Files\MATLAB\R2023b\bin" >> $env:GITHUB_ENV
shell: powershell
if: matrix.language == 'matlab' && runner.os == 'Windows'

We hardcode the 2023b version, but the setup is already installing 2024a

/usr/bin/chmod +x /home/runner/work/_temp/mpm
  /home/runner/work/_temp/mpm install --release=r2024a --destination=/opt/hostedtoolcache/MATLAB/2024.1.999/x64 --products MATLAB
  Installing with the following parameters:
  --destination=/opt/hostedtoolcache/MATLAB/2024.1.999/x64
  --doc=false
  --release=R2024a
  --products=MATLAB

MATLAB fails to build because we end up using the wrong PATHs

/bin/sh: 1: /opt/hostedtoolcache/MATLAB/2023.2.999/x64/bin/matlab: not found
@pepone pepone added bug ci continuous integration labels Apr 9, 2024
@pepone pepone added this to the 3.8.0 milestone Apr 9, 2024
@externl
Copy link
Member

externl commented Apr 9, 2024

It would be nice to figure out what the latest installed version is from some env variable or something.

@externl
Copy link
Member

externl commented Apr 25, 2024

I opened an issue with setup-matlab and they pointed me at a solution to get the install dir.

matlab-actions/setup-matlab#109

@externl
Copy link
Member

externl commented Apr 26, 2024

I've tried updating to 2024a in #2073 but the build hangs on Linux. @pepone is going to try locally.

externl added a commit to externl/ice that referenced this issue May 2, 2024
externl added a commit that referenced this issue May 3, 2024
InsertCreativityHere pushed a commit to InsertCreativityHere/compiler-comparison that referenced this issue Jan 1, 2025
InsertCreativityHere pushed a commit to InsertCreativityHere/compiler-comparison that referenced this issue Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ci continuous integration
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants