Skip to content

Commit

Permalink
try rebuilding MATLAB
Browse files Browse the repository at this point in the history
  • Loading branch information
taylormcd committed Oct 25, 2021
1 parent d5a647d commit 0da3d74
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mexjulia/jl.m
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,14 @@ function init()
' isfile(startupfile) && Base.JLOptions().startupfile != 2 && Base.include(Main, startupfile) ',...
'end '));

% rebuild MATLAB
if getenv(CI)
mexjulia(true, 'using Pkg; Pkg.build("MATLAB")')
end

% load required packages
mexjulia(true, 'using MATLAB, Mex');

% restore the path
if ispc
cd(old_dir);
Expand Down

0 comments on commit 0da3d74

Please sign in to comment.