Skip to content
This repository was archived by the owner on May 24, 2026. It is now read-only.

Commit 77ed82f

Browse files
committed
Pain getting the right packages for alpine
1 parent 2654e4c commit 77ed82f

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,24 @@ jobs:
7777
- name: Build in Alpine
7878
run: |
7979
docker run --rm -v "$PWD":/src -w /src alpine:latest sh -c '
80+
set -e
8081
apk add --no-cache \
8182
gcc musl-dev meson vala bison pkgconf file \
82-
glib-dev glib-static libxml2-dev libxml2-static zlib-dev zlib-static \
83-
pcre2-dev pcre2-static util-linux-dev xz-dev xz-static
83+
glib-dev glib-static \
84+
libxml2-dev libxml2-static \
85+
zlib-dev zlib-static \
86+
pcre2-dev pcre2-static \
87+
libffi-dev \
88+
xz-dev xz-static \
89+
util-linux-dev util-linux-static \
90+
libeconf-dev
91+
echo "=== Verifying static libs ==="
92+
ls /usr/lib/libglib-2.0.a /usr/lib/libgio-2.0.a /usr/lib/libgobject-2.0.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libpcre2-8.a /usr/lib/libffi.a /usr/lib/liblzma.a /usr/lib/libmount.a /usr/lib/libblkid.a /usr/lib/libeconf.a
93+
echo "=== All static libs found ==="
8494
meson setup builddir --default-library=static --prefer-static
8595
meson compile -C builddir
8696
file builddir/wixl
97+
ldd builddir/wixl || echo "statically linked"
8798
builddir/wixl --version
8899
'
89100
@@ -139,7 +150,6 @@ jobs:
139150
package:
140151
runs-on: macos-latest
141152
needs: [windows, linux, macos]
142-
if: always() && !cancelled()
143153
steps:
144154
- uses: actions/download-artifact@v4
145155
with:

meson.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ if host_machine.system() == 'windows'
257257
'-ladvapi32', '-luserenv', '-liphlpapi', '-ldnsapi',
258258
'-lbcrypt',
259259
]
260+
elif host_machine.system() == 'linux'
261+
platform_link_args = ['-static', '-leconf']
260262
else
261263
platform_link_args = []
262264
endif

0 commit comments

Comments
 (0)