From 1abe067db7c24d93ee8b4eaff4fb55fdb29ba1fa Mon Sep 17 00:00:00 2001 From: txtsd Date: Thu, 31 Oct 2024 18:36:31 +0530 Subject: [PATCH] chore: Try using linbl-static from alpine Signed-off-by: txtsd --- .github/scripts/build.sh | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/.github/scripts/build.sh b/.github/scripts/build.sh index 342c1d5..56e27fb 100755 --- a/.github/scripts/build.sh +++ b/.github/scripts/build.sh @@ -3,29 +3,7 @@ set -x # General updates apk update -apk add cmake openssl openssl-dev openssl-libs-static linux-headers ninja-is-really-ninja alpine-sdk runuser sudo sed - -# Setup build environment -addgroup $(whoami) abuild -mkdir -p /var/cache/distfiles -chmod a+w /var/cache/distfiles -chgrp abuild /var/cache/distfiles -chmod g+w /var/cache/distfiles -cwd=$(pwd) - -# Create user to run abuild -adduser -G abuild -g "Alpine Package Builder" -s /bin/ash -D abuilder -echo "abuilder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers - -# Build static libnl3 -runuser -u abuilder -- /usr/bin/abuild-keygen -n -a -i -b 4096 -cd /home/abuilder -runuser -u abuilder -- git clone https://gitlab.alpinelinux.org/alpine/aports.git --depth 1 -cd /home/abuilder/aports/main/libnl3 -# runuser -u abuilder -- /bin/sed -i "s/subpackages=\"/subpackages=\"\$pkgname-static /" APKBUILD -runuser -u abuilder -- /bin/sed -i "s/--disable-static/--enable-static/" APKBUILD -runuser -u abuilder -- /usr/bin/abuild -r -apk add /home/abuilder/packages/main/$(abuild -A)/libnl3* +apk add cmake openssl openssl-dev openssl-libs-static linux-headers ninja-is-really-ninja alpine-sdk runuser sudo sed libnl-static # Build static DPITunnel cd ${cwd}