From 82102c3eb7da5e24a69571f480dc22320b863de2 Mon Sep 17 00:00:00 2001 From: Jose Date: Thu, 31 Oct 2024 09:18:41 +0100 Subject: [PATCH] Add MATLAB_COMMAND to env --- .github/workflows/matlab_analyzer.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/matlab_analyzer.yml b/.github/workflows/matlab_analyzer.yml index f4d8664f33f..572ba4e551b 100644 --- a/.github/workflows/matlab_analyzer.yml +++ b/.github/workflows/matlab_analyzer.yml @@ -31,6 +31,15 @@ jobs: echo "MATLAB_VERSION=R2024a" >> $GITHUB_ENV echo "MATLAB_HOME=${{ steps.setup-matlab.outputs.matlabroot }}" >> $GITHUB_ENV shell: bash + # https://github.com/matlab-actions/run-command/issues/53 + - 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 + echo "MATLAB_COMMAND=/usr/local/bin/run-matlab-command" >> $GITHUB_ENV + + # https://www.mathworks.com/matlabcentral/answers/1907290-how-to-manually-select-the-libstdc-library-to-use-to-resolve-a-version-glibcxx_-not-found + echo "LD_PRELOAD=/lib/x86_64-linux-gnu/libstdc++.so.6" >> $GITHUB_ENV - name: Build MATLAB on Ubuntu uses: ./.github/actions/build