From c6813f1e0dacb205df2b5adf15a36dbbea0fd880 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Fri, 15 Apr 2022 11:46:14 +0200 Subject: [PATCH] Make skip-unused build prod; better ci information --- .woodpecker/.build_experimental.yml | 3 +++ Makefile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.woodpecker/.build_experimental.yml b/.woodpecker/.build_experimental.yml index 032a42b..faea53d 100644 --- a/.woodpecker/.build_experimental.yml +++ b/.woodpecker/.build_experimental.yml @@ -38,5 +38,8 @@ pipeline: - make skip-unused - readelf -d suvieter - du -h suvieter + - '[ "$(readelf -d suvieter | grep NEEDED | wc -l)" = 0 ]' + - strip -s suvieter + - du -h suvieter when: event: push diff --git a/Makefile b/Makefile index 2f39983..6f39a40 100644 --- a/Makefile +++ b/Makefile @@ -87,4 +87,4 @@ afvieter: $(SOURCES) .PHONY: skip-unused skip-unused: suvieter suvieter: $(SOURCES) - $(V_PATH) -showcc -skip-unused -o suvieter $(SRC_DIR) + $(V_PATH) -showcc -skip-unused -prod -o suvieter $(SRC_DIR)