Skip to content

Commit

Permalink
add musl-x64
Browse files Browse the repository at this point in the history
  • Loading branch information
sdcb committed Feb 3, 2025
1 parent bf52d5d commit c294ad9
Showing 1 changed file with 29 additions and 14 deletions.
43 changes: 29 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,21 @@ jobs:
strategy:
matrix:
include:
- { os: linux, arch: x64 }
- { os: linux, arch: x86 }
- { os: linux, arch: arm64 }
- { os: linux, arch: arm }
- { os: win, arch: x64 }
- { os: win, arch: x86 }
- { os: android, arch: x64 }
- { os: android, arch: arm64 }
- { os: android, arch: x86 }
- { os: android, arch: arm }
- { os: osx, arch: arm64 }
- { os: osx, arch: x64 }
- { os: ios, arch: arm64 }

- { os: linux, arch: x64 }
- { os: linux, arch: x86 }
- { os: linux, arch: arm64 }
- { os: linux, arch: arm }
- { os: linux-musl, arch: x64 }
- { os: win, arch: x64 }
- { os: win, arch: x86 }
- { os: android, arch: x64 }
- { os: android, arch: arm64 }
- { os: android, arch: x86 }
- { os: android, arch: arm }
- { os: osx, arch: arm64 }
- { os: osx, arch: x64 }
- { os: ios, arch: arm64 }

runs-on: ${{ (matrix.os == 'osx' || matrix.os == 'ios') && (matrix.arch == 'x64' && 'macos-13' || 'macos-latest') || 'ubuntu-latest' }}

env:
Expand Down Expand Up @@ -69,6 +70,13 @@ jobs:
echo "STRIP=arm-linux-gnueabihf-strip --strip-unneeded" >> $GITHUB_ENV
echo "TEST_CC=arm-linux-gnueabihf-gcc" >> $GITHUB_ENV
;;
"linux-musl-x64")
echo "HOST=x86_64-linux-musl" >> $GITHUB_ENV
echo "GMP_SO=libgmp.so.10.5.0" >> $GITHUB_ENV
echo "GMP_CPP_SO=libgmpxx.so.4.7.0" >> $GITHUB_ENV
echo "STRIP=strip --strip-unneeded" >> $GITHUB_ENV
echo "TEST_CC=musl-gcc" >> $GITHUB_ENV
;;
"win-x64")
echo "HOST=x86_64-w64-mingw32" >> $GITHUB_ENV
echo "GMP_SO=libgmp-10.dll" >> $GITHUB_ENV
Expand Down Expand Up @@ -191,6 +199,10 @@ jobs:
;;
"linux-x64")
;;
"linux-musl-x64")
sudo apt-get update
sudo apt-get install -y musl-tools
;;
"android-x64" | "android-arm64" | "android-x86" | "android-arm")
;;
"osx-arm64" | "osx-x64" | "ios-arm64")
Expand Down Expand Up @@ -307,6 +319,9 @@ jobs:
"linux-arm")
LD_LIBRARY_PATH=${{ github.workspace }}/gmp-${GMP_VERSION}/.libs qemu-arm -L /usr/arm-linux-gnueabihf/ ./factorial_gmp.exe
;;
"linux-musl-x64")
LD_LIBRARY_PATH=${{ github.workspace }}/gmp-${GMP_VERSION}/.libs ./factorial_gmp.exe
;;
osx-*)
DYLD_LIBRARY_PATH=${{ github.workspace }}/gmp-${GMP_VERSION}/.libs ./factorial_gmp.exe
;;
Expand Down

0 comments on commit c294ad9

Please sign in to comment.