summaryrefslogtreecommitdiffstats
path: root/.github/actions/muslbuilder/entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to '.github/actions/muslbuilder/entrypoint.sh')
-rwxr-xr-x.github/actions/muslbuilder/entrypoint.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/actions/muslbuilder/entrypoint.sh b/.github/actions/muslbuilder/entrypoint.sh
new file mode 100755
index 0000000..7c40420
--- /dev/null
+++ b/.github/actions/muslbuilder/entrypoint.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -Eeuxo pipefail
+
+cd $GITHUB_WORKSPACE
+./autogen.sh
+mkdir lbuild
+cd lbuild
+../configure \
+ --with-libarchive=/fake.root \
+ CFLAGS='-static -g1 -gz=zlib -no-pie -O2' \
+ CXXFLAGS='-static -g1 -gz=zlib -U__unused -no-pie -O2' \
+ LDFLAGS="-L/fake.root/lib" \
+ CPPFLAGS="-I/fake.root/include" \
+ LIBS="-L/fake.root/lib -lexecinfo -lssh2 -llzma -lssl -lcrypto -lz -llz4" \
+ --enable-static \
+ PATH="/fake.root/bin:${PATH}"
+make -j2