Skip to content

Commit 529e0e5

Browse files
committed
[MATLAB] Added CI step to build MLTBX
and upload the artifact
1 parent 8f1badf commit 529e0e5

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,26 @@ jobs:
6464
uses: matlab-actions/run-tests@v2
6565
with:
6666
select-by-folder: /home/runner/work/cantera/cantera/test/matlab_experimental
67+
- name: Set TOOLBOX_VERSION environment variable from tag
68+
run: |
69+
echo "TOOLBOX_VERSION=${GITHUB_REF_NAME}" >> $GITHUB_ENV
70+
- name: Build MLTBX toolbox
71+
uses: matlab-actions/run-command@v2
72+
with:
73+
command: |
74+
addpath('/home/runner/work/cantera/cantera/interfaces/matlab_experimental/Setup');
75+
buildToolbox;
76+
- name: Upload Toolbox Artifact
77+
uses: actions/upload-artifact@v4
78+
with:
79+
name: Cantera_MATLAB_toolbox
80+
path: build/*.mltbx
81+
retention-days: 14
82+
# MLTBX test is disabled until we can download packaged binaries and header files
83+
# - name: Test the MLTBX toolbox
84+
# uses: matlab-actions/run-tests@v2
85+
# with:
86+
# select-by-folder: /home/runner/work/cantera/cantera/test/matlab_experimental
6787

6888
ubuntu-multiple-pythons:
6989
name: ${{ matrix.os }} with Python ${{ matrix.python-version }}, Numpy ${{ matrix.numpy || 'latest' }}, Cython ${{ matrix.cython || 'latest' }}
@@ -336,7 +356,7 @@ jobs:
336356
- name: Set up MATLAB
337357
uses: matlab-actions/setup-matlab@v2
338358
- name: Test the MATLAB interface and generate coverage report
339-
uses: matlab-actions/run-command@v1
359+
uses: matlab-actions/run-command@v2
340360
env:
341361
CANTERA_ROOT: /home/runner/work/cantera/cantera
342362
CANTERA_DATA: /home/runner/work/cantera/cantera/data

0 commit comments

Comments
 (0)