Skip to content

Commit

Permalink
Update build.yml and README.md for MATLAB test setup
Browse files Browse the repository at this point in the history
Modified build.yml to streamline MATLAB unit test steps by removing OS check and updating file checks and copy operations. Updated README.md to note MEX-file compatibility with MATLAB and Octave.
  • Loading branch information
ptahmose committed Oct 19, 2024
1 parent 928a870 commit 64ccc50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,16 @@ jobs:
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release -j
- name: Prepare MATLAB unit tests
if: runner.os == 'Windows'
shell: bash
run: |
# if on Windows, then this is the mex-file we need to copy to the tests/MATLAB folder
if [ -f "build/MEXlibCZI/Release/MEXlibCZI.mexw64" ]; then
cp "build/MEXlibCZI/Release/MEXlibCZI.mexw64" tests/MATLAB/
fi
- name: Run statements
if: runner.os == 'Windows'
if [ -f "build/MEXlibCZI/MEXlibCZI.mexa64" ]; then
cp "build/MEXlibCZI/MEXlibCZI.mexa64" tests/MATLAB/
fi
- name: Run MATLAB unit tests
uses: matlab-actions/run-command@v2
with:
command: cd tests/MATLAB; results = runtests, assertSuccess(results);
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ directly read and write [CZI-documents](https://www.zeiss.com/microscopy/int/pro
It is based on [libCZI](https://github.com/ptahmose/libCZI).
![MEXlibCZI](./doc/pictures/intro.PNG "MEXlibCZI")

This project provides a MEX-file for use with MATLAB and Octave.

The available commands are documented here: [commands](./doc/commands.markdown)

# Installing
Expand Down

0 comments on commit 64ccc50

Please sign in to comment.