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