Skip to content

Commit 483d741

Browse files
Try upgrading the system first
1 parent f82c2c1 commit 483d741

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/matlab.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,24 @@ jobs:
4040
- name: Install
4141
run: cmake --install ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
4242

43+
- name: Upgrade system
44+
run: |
45+
sudo apt-get -qq update
46+
sudo apt-get -qq -y upgrade
47+
4348
- name: Set up MATLAB
4449
uses: matlab-actions/setup-matlab@v2
4550

4651
- name: Compile and run
4752
uses: matlab-actions/run-command@v2
4853
with:
4954
command: |
50-
LD_PRELOAD=/lib/x86_64-linux-gnu/libstdc++.so.6 mex('-setup', '-v', 'C');
55+
mex('-setup', '-v', 'C');
5156
cd('wrappers/matlab/');
5257
fnames = struct2table(dir('*.cpp')).name;
5358
for i = 1:length(fnames)
5459
fname = cell2mat(fnames(i));
55-
LD_PRELOAD=/lib/x86_64-linux-gnu/libstdc++.so.6 mex('-v', fname, '-I./', '-I${{github.workspace}}/install/include/moordyn', '-L${{github.workspace}}/install/lib', '-L${{github.workspace}}/install/lib64', '-lmoordyn');
60+
mex('-v', fname, '-I./', '-I${{github.workspace}}/install/include/moordyn', '-L${{github.workspace}}/install/lib', '-L${{github.workspace}}/install/lib64', '-lmoordyn');
5661
end
5762
% Run the same minimal test we have on matlab_bindings.m.in
5863
system = MoorDynM_Create('../../tests/Mooring/lines.txt');

0 commit comments

Comments
 (0)