From a3fc93f9f4361aebc77c74bb8c179933905a4d4d Mon Sep 17 00:00:00 2001 From: Ray Zimmerman Date: Fri, 2 Feb 2024 13:06:07 -0700 Subject: [PATCH] Update to Github CI to use actions/checkout@v4 and matlab-actions/setup-matlab@v2. For the latter, I had to use the undocumented 'run-matlab-command'. Ref: https://github.com/matlab-actions/setup-matlab/issues/89#issuecomment-1924192934 --- action.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/action.yml b/action.yml index b8a51ff..a208bc0 100644 --- a/action.yml +++ b/action.yml @@ -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: |