diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index 582703c..cb2bac0 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -21,6 +21,7 @@ jobs: - 'R2021b' julia-version: - '1.6' + - '1' os: - ubuntu-latest arch: @@ -45,7 +46,7 @@ jobs: with: command: addpath('deps'), build - name: Add Mex.jl package to the default Julia environment - run: julia -e 'using Pkg; Pkg.add(url=".");' + run: julia -e 'using Pkg; Pkg.add(url="."); using Mex;' - name: Run MATLAB tests uses: matlab-actions/run-tests@v1 with: diff --git a/examples/exn_thrower.m b/examples/exn_thrower.m index 9212a10..1a72eab 100644 --- a/examples/exn_thrower.m +++ b/examples/exn_thrower.m @@ -1,4 +1,4 @@ -function exn_thrower() +function result = exn_thrower() error('I take exception to everything.'); diff --git a/examples/matlab_exception.m b/examples/matlab_exception.m index 23edece..2851b52 100644 --- a/examples/matlab_exception.m +++ b/examples/matlab_exception.m @@ -3,7 +3,7 @@ function matlab_exception() try - jl.call('Mex.call_matlab', int32(0), exn_thrower) + call_matlab_function(exn_thrower); catch e disp(getReport(e)); end