Skip to content

Commit

Permalink
debug 22
Browse files Browse the repository at this point in the history
  • Loading branch information
rdzman committed Feb 2, 2024
1 parent c6136b2 commit 676d34a
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,35 +31,22 @@ inputs:
runs:
using: "composite"
steps:
- name: Debug
run: |
which matlab
ls -l /opt/hostedtoolcache/MATLAB
ls -l /opt/hostedtoolcache/MATLAB/2023.2.999
ls -l /opt/hostedtoolcache/MATLAB/2023.2.999/x64
shell: bash
- name: Get run-matlab-command
run: |
wget -O /usr/local/bin/run-matlab-command https://ssd.mathworks.com/supportfiles/ci/run-matlab-command/v2/glnxa64/run-matlab-command
chmod +x /usr/local/bin/run-matlab-command
shell: bash
- name: Configure MATLAB
run: |
echo `run-matlab-command "regexp(version, '(?<=\().*(?=\))', 'match', 'once')" | sed 's/ //g;s/\x27//g;s/ans=//g'` > ml_out.txt
echo "--1--"
cat ml_out.txt
echo "--2--"
export MATLAB_REL=`run-matlab-command "regexp(version, '(?<=\().*(?=\))', 'match', 'once')" | sed 's/ //g;s/\x27//g;s/ans=//g'`
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`
echo "MATLAB_REL=${MATLAB_REL}" >> $GITHUB_ENV
echo "ML_NAME=MATLAB" >> $GITHUB_ENV
echo "ML_CMD=run-matlab-command" >> $GITHUB_ENV
echo "ML_PATHVAR=MATLABPATH" >> $GITHUB_ENV
shell: bash
# export MATLAB_REL=`cat ml_out.txt`
# export MATLAB_REL=`ls /opt/hostedtoolcache/MATLAB`
# export MATLAB_REL=R2023b
# export MATLAB_REL=`run-matlab-command "regexp(version, '(?<=\().*(?=\))', 'match', 'once')" | sed 's/ //g;s/\x27//g;s/ans=//g'`
# export MATLAB_VER=`matlab -nojvm -batch "fprintf('%s', ver('matlab').Version)"`

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

0 comments on commit 676d34a

Please sign in to comment.