Skip to content

Commit

Permalink
strip mex file to reduce size
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Jun 22, 2023
1 parent 1461b9b commit 2751923
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/run_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ jobs:
make -C src oct CC=gcc CXX=g++ USERLINKOPT="-static-libgcc -static-libstdc++ -fstack-protector -L/mingw64/lib -Wl,-Bstatic -lz -lwinpthread -Wl,-Bdynamic -v '$PWD/octave/octave-7.3.0-w64-64/mingw64/lib/octave/7.3.0/liboctinterp.dll.a'"
cp /mingw64/bin/zlib1.dll .
objdump -p zipmat.mex | grep "DLL Name:"
strip zipmat.mex
echo "$PWD/octave/octave-7.3.0-w64-64/mingw64/bin" >> $GITHUB_PATH
- name: Build octave mex (Linux and Mac)
if: ${{ runner.os != 'Windows' }}
Expand All @@ -81,6 +82,7 @@ jobs:
make -C src oct CC=gcc CXX=g++ MEXLDFLAG="-static-libgcc -static-libstdc++ -Wl,-Bstatic -lpthread -lm -Wl,-Bdynamic"
ldd zipmat.mex
fi
strip zipmat.mex
- name: Run octave test
if: ${{ runner.os != 'Windows' }}
run: |
Expand Down Expand Up @@ -161,6 +163,7 @@ jobs:
make -C src mex CC=gcc CXX=g++ CXXLIBS="-static-libgcc"
ldd zipmat.mex*
fi
strip zipmat.mex*
- name: Run MATLAB examples
uses: matlab-actions/run-command@v1
with:
Expand Down

0 comments on commit 2751923

Please sign in to comment.