Skip to content

Commit 190fe92

Browse files
committed
[MATLAB] Changed CI workflow to account for change
to how paths are set
1 parent 0b74445 commit 190fe92

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,20 @@ jobs:
6666
echo "LD_PRELOAD=$LIB_STDCXX:$LIB_OPENBLAS:$LIB_LAPACK" >> $GITHUB_ENV
6767
- name: Set up MATLAB
6868
uses: matlab-actions/setup-matlab@718d4320188c73c86eb94ce76b553cbf89778487 # v2.5.0
69-
- name: Run tests
70-
uses: matlab-actions/run-tests@f9fc3d8ca29fadef6227fa52884b144b9011fa2f # v2.1.1
71-
with:
72-
select-by-folder: /home/runner/work/cantera/cantera/test/matlab_experimental
73-
- name: Set TOOLBOX_VERSION environment variable from latest tag for main
74-
run: |
75-
TAG=$(git tag --sort=-creatordate | head -n 1)
76-
echo "TOOLBOX_VERSION=${TAG}" >> $GITHUB_ENV
77-
- name: Build MLTBX toolbox
69+
- name: Set MATLAB search paths for tests and build MLTBX toolbox
7870
uses: matlab-actions/run-command@v2
7971
with:
8072
command: |
81-
addpath('/home/runner/work/cantera/cantera/interfaces/matlab_experimental/Setup');
73+
toolboxPath = fullfile(getenv('CANTERA_ROOT'));
74+
libPath = fullfile(toolboxPath, 'build', 'lib');
75+
includePath = fullfile(toolboxPath, 'include');
76+
addpath(fullfile(toolboxPath, 'interfaces', 'matlab_experimental', 'Utility'));
77+
ctPaths(libPath, includePath, toolboxPath);
8278
buildToolbox;
79+
- name: Run tests
80+
uses: matlab-actions/run-tests@f9fc3d8ca29fadef6227fa52884b144b9011fa2f # v2.1.1
81+
with:
82+
select-by-folder: /home/runner/work/cantera/cantera/test/matlab_experimental
8383
- name: Upload Toolbox Artifact
8484
uses: actions/upload-artifact@v4
8585
with:

0 commit comments

Comments
 (0)