Skip to content

Commit

Permalink
Print path
Browse files Browse the repository at this point in the history
  • Loading branch information
externl committed Apr 25, 2024
1 parent 68ca878 commit 23aa3e5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/actions/setup-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,17 @@ runs:

- name: Set MATLAB_HOME
run: |
which matlab
echo "MATLAB_HOME=/opt/hostedtoolcache/MATLAB/R2024.2.999/x64" >> $GITHUB_ENV
echo "/opt/hostedtoolcache/MATLAB/2024.2.999/x64" >> $GITHUB_PATH
# MATLAB is located somewhere like /opt/hostedtoolcache/MATLAB/R2024.1.999/x64/bin/matlab
MATLAB_BIN=$(dirname $(which matlab))
echo "MATLAB_HOME=$(dirname $MATLAB_BIN)" >> $GITHUB_ENV
shell: bash
if: runner.os == 'Linux' && matrix.config == 'matlab'

- name: Set MATLAB_HOME
run: |
Get-Item Env:PATH
where matlab
Split-Path -Path $profile
echo "MATLAB_HOME=C:\Program Files\MATLAB\R2024a\bin" >> $env:GITHUB_ENV
echo "C:\Program Files\MATLAB\R2024a\bin" >> $env:GITHUB_PATH
shell: powershell
Expand Down

0 comments on commit 23aa3e5

Please sign in to comment.