Skip to content

Commit

Permalink
Allow native compiler for MEX GHA (#37)
Browse files Browse the repository at this point in the history
* Update build_mex.yml
* Update README.md
  • Loading branch information
samuelpowell authored Oct 20, 2022
1 parent f449735 commit b5dc206
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build_mex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,18 @@ jobs:

# Build the MEX
- name: Build
shell: bash
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
export CC=gcc-10
export CXX=g++-10
fi
mkdir build
cd build
cmake ../
cmake --build . --target install --config Release
env:
CC: gcc-10
CXX: g++-10
- uses: actions/upload-artifact@v3
with:
name: toastmm-matlab-${{ runner.os }}
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Pre-built binaries are provided for a number of platforms.

The Matlab interface is built using MATLAB R2020a on Windows x64, Linux x64, and MacOS.
It is expected that the interface will work on newer versions (please report if this is not
the case), but compilation from source will be required for older installations. Versions
the case), but compilation from source *may* be required for older installations. Versions
prior to R2018a are not supported (owing to changes in the complex numeric API).

To install, download a release for the appropriate platform and unzip the folder in a
Expand All @@ -46,7 +46,8 @@ This script will configure the appropriate include paths. Save these paths to ma
installation permanent. Check your installation by running one of the included demos:

```
>> demo toolbox toast
>> cd demos
>> toast_demo1
```

### Python
Expand Down

0 comments on commit b5dc206

Please sign in to comment.