mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-21 09:47:01 +02:00
fix(build): musl compilation (#759)
This commit is contained in:
4 files changed
+212
-236
No files matched your search
@@ -37,7 +37,6 @@ jobs:
|
||||
gmake -j1 tools
|
||||
gmake -j$(sysctl -n hw.ncpu)
|
||||
|
||||
|
||||
- name: Prepare upload directory
|
||||
run: |
|
||||
mkdir upload
|
||||
@@ -107,16 +106,26 @@ jobs:
|
||||
run: |
|
||||
curl -u ${{ secrets.ACTIONS_RESOURCES_LOGIN }} -LO https://static.palera.in/action-resources/musl-cross/${{ matrix.triple }}-cross.tar.zst
|
||||
tar --zstd -xf ${{ matrix.triple }}-cross.tar.zst
|
||||
find ./${{ matrix.triple }}-cross -name "*.la" -type f -delete
|
||||
echo "$(pwd)/${{ matrix.triple }}-cross/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Install dependencies (apt)
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y build-essential cmake autoconf automake libtool pkg-config
|
||||
sudo apt install -y build-essential cmake autoconf automake libtool pkg-config zstd
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
make palera1n WITH_STATIC=1 BUILD_TYPE=Release CMAKE_SYSROOT="$("$PWD/${{ matrix.triple }}-cross/bin/${{ matrix.triple }}-gcc" -print-sysroot)"
|
||||
SYSROOT_PATH="$("$PWD/${{ matrix.triple }}-cross/bin/${{ matrix.triple }}-gcc" -print-sysroot)"
|
||||
|
||||
CC="${{ matrix.triple }}-gcc" CXX="${{ matrix.triple }}-g++" \
|
||||
make palera1n \
|
||||
WITH_STATIC=1 \
|
||||
BUILD_TYPE=Release \
|
||||
CMAKE_SYSROOT="$SYSROOT_PATH" \
|
||||
CROSS_HOST_TRIPLE="${{ matrix.triple }}" \
|
||||
JOBS=$(nproc)
|
||||
${{ matrix.triple }}-strip -s build/palera1n
|
||||
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v4
|
||||
@@ -159,7 +168,8 @@ jobs:
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
make palera1n WITH_STATIC=1 WITH_GUI=1 BUILD_TYPE=Release
|
||||
make palera1n WITH_STATIC=1 WITH_GUI=1 BUILD_TYPE=Release JOBS=$(sysctl -n hw.ncpu)
|
||||
strip -s build/palera1n.app/Contents/MacOS/palera1n
|
||||
cd build && zip -r palera1n-macos-${{ matrix.arch }}.zip palera1n.app
|
||||
|
||||
- name: Upload
|
||||
@@ -225,7 +235,8 @@ jobs:
|
||||
- name: Build
|
||||
shell: msys2 {0}
|
||||
run: |
|
||||
make palera1n_mingw WITH_STATIC=1 WITH_GUI=1 BUILD_TYPE=Release
|
||||
make palera1n_mingw WITH_STATIC=1 WITH_GUI=1 BUILD_TYPE=Release JOBS=$(nproc)
|
||||
strip -s build/palera1n.exe
|
||||
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v4
|
||||
|
||||
Reference in new issue
Block a user