Skip to content

Commit

Permalink
finally found the culprit in the Makefile, matlab-actions/setup-matla…
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Mar 14, 2023
1 parent 1394602 commit 2e3894b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,27 +78,20 @@ jobs:
fi
octave-cli --eval "fprintf(1,['OCTAVE_ARCH=' regexprep(computer('arch'), 'darwin[0-9.]+-', 'darwin-')])"
octave-cli --eval "fprintf(1,['OCTAVE_ARCH=' regexprep(computer('arch'), 'darwin[0-9.]+-', 'darwin-')])" >> $GITHUB_ENV
- name: Build mmclab for MATLAB (MacOS and Linux)
if: ${{ runner.os != 'Windows' }}
- name: Build mmclab for MATLAB
run: |
cd src
if [[ "$RUNNER_OS" == "macOS" ]]; then
if [[ "$RUNNER_OS" == "Windows" ]]; then
make mex USERARFLAGS="-v"
objdump -p ../mmclab/mmc.mexw* | grep "DLL Name:"
elif [[ "$RUNNER_OS" == "macOS" ]]; then
which mex
make mex CC=gcc-10 CXX=g++-10 MEXLINKOPT="-static-libstdc++ -static-libgcc -fopenmp" EXTRALIB="-v -f mexopts_maci64_gcc.xml"
otool -L ../mmclab/mmc.mex*
else
make mex MEXLINKOPT="-static-libstdc++ -static-libgcc -fopenmp" EXTRALIB="-v"
ldd ../mmclab/mmc.mex*
fi
- name: Build mmclab for MATLAB (Windows only)
if: ${{ runner.os == 'Windows' }}
run: |
cd src
env
make mex USERARFLAGS="-V"
objdump -p ../mmclab/mmc.mexw* | grep "DLL Name:"
env:
MW_MINGW64_LOC: c:\ProgramData\Chocolatey\lib\mingw\tools\install\mingw64\
- name: Build binary
run: |
cd src
Expand Down
2 changes: 1 addition & 1 deletion commons/Makefile_common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ DLLFLAG=-fPIC

PLATFORM = $(shell uname -s)
ifeq ($(findstring MINGW64,$(PLATFORM)), MINGW64)
MW_MINGW64_LOC=/c/msys64/usr/
MW_MINGW64_LOC?=/c/msys64/usr/
MKMEX :=cmd //c mex.bat
INCLUDEDIRS+=-I"./mingw64/include"
LIBOPENCL ="c:\Windows\System32\OpenCL.dll"
Expand Down

0 comments on commit 2e3894b

Please sign in to comment.