From 052fb75ff94f1043eefcefb84ea30cfc0f6bab40 Mon Sep 17 00:00:00 2001 From: Chewing_Bever Date: Sun, 7 Jul 2024 10:51:27 +0200 Subject: [PATCH] chore(ci): add static binary check --- .woodpecker/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index 392bab1..3529154 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -3,7 +3,7 @@ platform: 'linux/amd64' when: branch: exclude: [main] - event: push + event: [push, pull_request] steps: build: @@ -11,4 +11,6 @@ steps: commands: - apk add --no-cache build-base libarchive libarchive-dev - cargo build --verbose + # Binaries, even debug ones, should be statically compiled + - '[ "$(readelf -d target/debug/rieterd | grep NEEDED | wc -l)" = 0 ]'