Skip to content

Commit

Permalink
consolidate strip
Browse files Browse the repository at this point in the history
  • Loading branch information
sdcb committed Jan 30, 2025
1 parent a82a0ba commit 9930a10
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,27 @@ jobs:
arch: x64
gmp_so: libgmp.so.10.5.0
gmp_cpp_so: libgmpxx.so.4.7.0
strip: strip
- os: linux
arch: x86
gmp_so: libgmp.so.10.5.0
gmp_cpp_so: libgmpxx.so.4.7.0
strip: strip
- os: linux
arch: arm64
gmp_so: libgmp.so.10.5.0
gmp_cpp_so: libgmpxx.so.4.7.0
strip: aarch64-linux-gnu-strip
- os: linux
arch: arm
gmp_so: libgmp.so.10.5.0
gmp_cpp_so: libgmpxx.so.4.7.0
strip: arm-linux-gnueabihf-strip
- os: win
arch: x64
gmp_so: libgmp-10.dll
gmp_cpp_so: libgmpxx-4.dll
strip: x86_64-w64-mingw32-strip
env:
GMP_VERSION: 6.3

Expand Down Expand Up @@ -100,19 +105,8 @@ jobs:
- name: Strip GMP Library
run: |
cd gmp-${GMP_VERSION}/.libs
if [ "${{ matrix.arch }}" = "arm64" ]; then
aarch64-linux-gnu-strip --strip-unneeded ${{ matrix.gmp_so }}
aarch64-linux-gnu-strip --strip-unneeded ${{ matrix.gmp_cpp_so }}
elif [ "${{ matrix.arch }}" = "arm" ]; then
arm-linux-gnueabihf-strip --strip-unneeded ${{ matrix.gmp_so }}
arm-linux-gnueabihf-strip --strip-unneeded ${{ matrix.gmp_cpp_so }}
elif [ "${{ matrix.os }}" = "win" ]; then
x86_64-w64-mingw32-strip --strip-unneeded ${{ matrix.gmp_so }}
x86_64-w64-mingw32-strip --strip-unneeded ${{ matrix.gmp_cpp_so }}
else
strip --strip-unneeded ${{ matrix.gmp_so }}
strip --strip-unneeded ${{ matrix.gmp_cpp_so }}
fi
${{ matrix.strip }} --strip-unneeded ${{ matrix.gmp_so }}
${{ matrix.strip }} --strip-unneeded ${{ matrix.gmp_cpp_so }}
- name: Compile C Program
run: |
Expand Down

0 comments on commit 9930a10

Please sign in to comment.