From 3d9d3ab5cfeda35b989ca8409762c18897c03bb9 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Sat, 21 Sep 2024 21:28:13 -0300 Subject: [PATCH] fix: strip binaries for release artifacts --- build_static.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build_static.sh b/build_static.sh index affb2b3..4974070 100755 --- a/build_static.sh +++ b/build_static.sh @@ -7,10 +7,10 @@ docker run --rm --privileged \ # Build for AMD64 docker build . -f Dockerfile.static -t tartrazine-builder -docker run -ti --rm -v "$PWD":/app --user="$UID" tartrazine-builder /bin/sh -c "cd /app && rm -rf lib shard.lock && shards build --static --release" +docker run -ti --rm -v "$PWD":/app --user="$UID" tartrazine-builder /bin/sh -c "cd /app && rm -rf lib shard.lock && shards build --static --release && strip bin/*" mv bin/tartrazine bin/tartrazine-static-linux-amd64 # Build for ARM64 docker build . -f Dockerfile.static --platform linux/arm64 -t tartrazine-builder -docker run -ti --rm -v "$PWD":/app --platform linux/arm64 --user="$UID" tartrazine-builder /bin/sh -c "cd /app && rm -rf lib shard.lock && shards build --static --release" +docker run -ti --rm -v "$PWD":/app --platform linux/arm64 --user="$UID" tartrazine-builder /bin/sh -c "cd /app && rm -rf lib shard.lock && shards build --static --release && strip bin/*" mv bin/tartrazine bin/tartrazine-static-linux-arm64