Skip to content

Commit

Permalink
Update to Github CI to use actions/checkout@v4 and matlab-actions/set…
Browse files Browse the repository at this point in the history
…up-matlab@v2.

For the latter, I had to use the undocumented 'run-matlab-command'.

Ref: matlab-actions/setup-matlab#89 (comment)
  • Loading branch information
rdzman committed Feb 2, 2024
1 parent 848f136 commit a3fc93f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ runs:
echo "ML_CMD=run-matlab-command" >> $GITHUB_ENV
echo "ML_PATHVAR=MATLABPATH" >> $GITHUB_ENV
shell: bash
# echo `run-matlab-command "regexp(version, '(?<=\().*(?=\))', 'match', 'once')" | sed 's/ //g;s/\x27//g;s/ans=//g'` > matlab_release.txt
# export MATLAB_REL=`cat matlab_release.txt`
# export MATLAB_VER=`matlab -nojvm -batch "fprintf('%s', ver('matlab').Version)"`
# export MATLAB_REL=`ls /opt/hostedtoolcache/MATLAB`
# export MATLAB_REL=`run-matlab-command "regexp(version, '(?<=\().*(?=\))', 'match', 'once')" | sed 's/ //g;s/\x27//g;s/ans=//g'`

- name: Set MATLAB_VER, ML_VER
run: |
Expand Down

0 comments on commit a3fc93f

Please sign in to comment.