|
22 | 22 | runs-on: ${{ matrix.os }}
|
23 | 23 | strategy:
|
24 | 24 | matrix:
|
| 25 | + # Note: We use the latest version of Ubuntu 24.04 in order to get a more recent version of Octave (we get 8.4 currently) |
| 26 | + # We better should use a version >6.4, otherwise the Octave-mex-support seems to be missing some functions. |
25 | 27 | os: [ubuntu-24.04, windows-latest] # Windows and Linux builds
|
26 | 28 | outputs:
|
27 | 29 | linuxx64_matlab_artifact: ${{ steps.prepare_linux_artifact.outputs.linuxx64_matlab_build }}
|
@@ -116,16 +118,16 @@ jobs:
|
116 | 118 | run: |
|
117 | 119 | cd tests/octave
|
118 | 120 | ls -l ../../OctaveMex
|
119 |
| - octave --eval "addpath('../../OctaveMex'),test('test_basic_operation.m')" |
120 |
| - octave --eval "addpath('../../OctaveMex'),test('test_write.m')" |
| 121 | + octave --eval "addpath('../../OctaveMex'),result=test('test_basic_operation.m'); if ~all([result.passed]), exit(1); else, exit(0); end" |
| 122 | + octave --eval "addpath('../../OctaveMex'),result=test('test_write.m'); if ~all([result.passed]), exit(1); else, exit(0); end" |
121 | 123 | - name: Octave Unit-Tests (Windows)
|
122 | 124 | if: runner.os == 'Windows'
|
123 | 125 | shell: cmd
|
124 | 126 | run: |
|
125 | 127 | cd tests/octave
|
126 | 128 | set GITHUB_WORKSPACE_FORWARD_SLASHES=%GITHUB_WORKSPACE:\=/%
|
127 |
| - "%OCTAVECLI_LINK%" --eval "cd %GITHUB_WORKSPACE_FORWARD_SLASHES%/tests/octave,addpath('../../OctaveMex'),test('test_basic_operation.m')" |
128 |
| - "%OCTAVECLI_LINK%" --eval "cd %GITHUB_WORKSPACE_FORWARD_SLASHES%/tests/octave,addpath('../../OctaveMex'),test('test_write.m')" |
| 129 | + "%OCTAVECLI_LINK%" --eval "cd %GITHUB_WORKSPACE_FORWARD_SLASHES%/tests/octave,addpath('../../OctaveMex'),result=test('test_basic_operation.m'); if ~all([result.passed]), exit(1); else, exit(0); end" |
| 130 | + "%OCTAVECLI_LINK%" --eval "cd %GITHUB_WORKSPACE_FORWARD_SLASHES%/tests/octave,addpath('../../OctaveMex'),result=test('test_write.m'); if ~all([result.passed]), exit(1); else, exit(0); end" |
129 | 131 | - name: Prepare MATLAB-mex artifact (Windows)
|
130 | 132 | id: prepare_windows_matlab_artifact
|
131 | 133 | if: runner.os == 'Windows'
|
|
0 commit comments