fix: enforce real static build and use job token for releases
iperf3 static musl build / build-and-release (push) Failing after 18s
iperf3 static musl build / build-and-release (push) Failing after 18s
This commit is contained in:
@@ -55,7 +55,7 @@ jobs:
|
||||
- name: Publish release assets
|
||||
shell: sh
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
GITEA_TOKEN: ${{ gitea.token }}
|
||||
GITEA_API_URL: ${{ gitea.api_url }}
|
||||
REPO_OWNER: ${{ gitea.repository_owner }}
|
||||
REPO_NAME: static-musl-builds
|
||||
|
||||
@@ -26,9 +26,9 @@ curl -fsSLO "https://downloads.es.net/pub/iperf/iperf-${VERSION}.tar.gz"
|
||||
tar -xzf "iperf-${VERSION}.tar.gz"
|
||||
cd "iperf-${VERSION}"
|
||||
|
||||
export CFLAGS="-O2 -static"
|
||||
export CFLAGS="-O2 -static -fno-pie"
|
||||
export CPPFLAGS=""
|
||||
export LDFLAGS="-static"
|
||||
export LDFLAGS="-static -no-pie"
|
||||
|
||||
./configure \
|
||||
--disable-shared \
|
||||
@@ -47,3 +47,8 @@ install -m 0755 src/iperf3 "$OUTPUT_DIR/$PREFIX_NAME"
|
||||
|
||||
file "$OUTPUT_DIR/$PREFIX_NAME"
|
||||
ldd "$OUTPUT_DIR/$PREFIX_NAME" || true
|
||||
|
||||
if file "$OUTPUT_DIR/$PREFIX_NAME" | grep -qi 'dynamically linked'; then
|
||||
echo "error: output binary is still dynamically linked" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user