diff --git a/.github/workflows/build_matlab.yml b/.github/workflows/build_matlab.yml index 499c2b1d0..b877ecf4d 100644 --- a/.github/workflows/build_matlab.yml +++ b/.github/workflows/build_matlab.yml @@ -28,11 +28,9 @@ jobs: cd build cmake .. cmake --build . --config Release --target install --parallel 4 - - name: run mex example - run: | - pwd - ls -l - ls -l build - matlab -nodisplay -r 'try, example(), catch, exit(1); end; exit' + - name: Run example script + uses: matlab-actions/run-command@v1 + with: + command: example