Skip to content

Commit 7919db5

Browse files
committed
update makefile mex ci
1 parent b8dcc8f commit 7919db5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/make-mex.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
uses: matlab-actions/setup-matlab@v2
3131
with:
3232
release: R2023b
33-
cache: false
33+
cache: true
3434
- name: Generate Windows mex file
3535
if: runner.os == 'Windows'
3636
run: |
@@ -49,7 +49,8 @@ jobs:
4949
run: |
5050
brew install fftw libomp
5151
sed 's/\/Applications\/MATLAB_R20\*\*.app/\/Users\/runner\/hostedtoolcache\/MATLAB\/2023.2.999\/arm64\/MATLAB.app/' make-platforms/make.inc.macosx_arm64 > make.inc
52-
sed -i -e 's/ LIBSFFT.*/\ \ LIBSFFT := \/opt\/homebrew\/opt\/fftw\/lib\/libfftw3\.a \/opt\/homebrew\/opt\/fftw\/lib\/libfftw3f\.a \/opt\/homebrew\/opt\/fftw\/lib\/libfftw3_omp.a \/opt\/homebrew\/opt\/fftw\/lib\/libfftw3f_omp\.a -L\/Users\/runner\/hostedtoolcache\/MATLAB\/2023.2.999\/arm64\/MATLAB.app\/bin\/maca64\/lib -lomp/' makefile
52+
sed -i -e 's/-lomp//' make.inc
53+
sed -i -e 's/ LIBSFFT.*/\ \ LIBSFFT := \/opt\/homebrew\/opt\/fftw\/lib\/libfftw3\.a \/opt\/homebrew\/opt\/fftw\/lib\/libfftw3f\.a \/opt\/homebrew\/opt\/fftw\/lib\/libfftw3_omp.a \/opt\/homebrew\/opt\/fftw\/lib\/libfftw3f_omp\.a -L\/opt\/homebrew\/opt\/libomp\/lib -lomp/' makefile
5354
make matlab
5455
- name: Generate Linux mex file
5556
if: runner.os == 'Linux'

0 commit comments

Comments
 (0)