From c1663a83d35d019a5f2c89f6610e581a9a159dfb Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Sun, 28 Sep 2025 19:16:31 -0700 Subject: [PATCH] feat: add static build to ci --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 326274d5..65fd0dd3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,3 +42,11 @@ jobs: CGO_ENABLED=0 GOOS=freebsd GOARCH=arm64 go build -ldflags '' -o croc-freebsd-arm64 CGO_ENABLED=0 GOOS=openbsd GOARCH=amd64 go build -ldflags '' -o croc-openbsd-amd64 CGO_ENABLED=0 GOOS=openbsd GOARCH=arm64 go build -ldflags '' -o croc-openbsd-arm64 + - name: Check static build of the linux version + run: | + if ldd croc-linux-amd64 2>&1 | grep -q "not a dynamic executable"; then + echo "Static build confirmed." + else + echo "Error: croc-linux-amd64 is a dynamic executable." + exit 1 + fi \ No newline at end of file