Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try setting MATLAB_ROOT #17

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- 'R2021b'
julia-version:
- '1.6'
- '1'
os:
- ubuntu-latest
arch:
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion examples/exn_thrower.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function exn_thrower()
function result = exn_thrower()

error('I take exception to everything.');

Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_exception.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down