Skip to content

Commit 7a86df0

Browse files
Add C++ runtime verification step in workflow
Added a step to verify the C++ runtime before running MATLAB unit tests.
1 parent 9c38637 commit 7a86df0

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/matlab-tests.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,28 +47,37 @@ jobs:
4747
find "$GITHUB_WORKSPACE" -maxdepth 3 -type f | sort
4848
ls -la "$GITHUB_WORKSPACE/auxiliary functions"
4949
50+
- name: Verify C++ runtime
51+
shell: bash
52+
run: |
53+
test -f "$HOME/miniforge3/envs/pythonocc/lib/libstdc++.so.6"
54+
strings "$HOME/miniforge3/envs/pythonocc/lib/libstdc++.so.6" \
55+
| grep CXXABI_1.3.15
56+
5057
- name: Run MATLAB unit tests
5158
uses: matlab-actions/run-command@v2
59+
env:
60+
LD_PRELOAD: /home/runner/miniforge3/envs/pythonocc/lib/libstdc++.so.6
5261
with:
5362
command: |
5463
cd(getenv("GITHUB_WORKSPACE"));
5564
addpath(pwd);
56-
65+
5766
pythonPath = fullfile( ...
5867
getenv("HOME"), ...
5968
"miniforge3", ...
6069
"envs", ...
6170
"pythonocc", ...
6271
"bin", ...
6372
"python3");
64-
73+
6574
pyenv( ...
6675
Version=pythonPath, ...
6776
ExecutionMode="OutOfProcess");
68-
77+
6978
suite = matlab.unittest.TestSuite.fromFolder( ...
7079
"unit test", ...
7180
"IncludingSubfolders", true);
72-
81+
7382
results = run(suite);
7483
assertSuccess(results);

0 commit comments

Comments
 (0)