We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5a485c commit 1b72b89Copy full SHA for 1b72b89
.github/workflows/ci.yml
@@ -62,7 +62,7 @@ jobs:
62
name: codecov-umbrella
63
64
- name: Build
65
- run: go build -v -o tenangdb ./cmd
+ run: CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -v -o tenangdb ./cmd
66
67
build-matrix:
68
name: Build for ${{ matrix.goos }}/${{ matrix.goarch }}
@@ -126,7 +126,7 @@ jobs:
126
fi
127
128
echo "Building $BINARY_NAME"
129
- go build -ldflags "${LDFLAGS}" -o "$BINARY_NAME" ./cmd
+ go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -ldflags "${LDFLAGS}" -o "$BINARY_NAME" ./cmd
130
131
- name: Test binary
132
if: matrix.goos == 'linux' && matrix.goarch == 'amd64'
0 commit comments