Skip to content

Commit 1b72b89

Browse files
feat: update build command to support older versions (#45)
1 parent c5a485c commit 1b72b89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
name: codecov-umbrella
6363

6464
- name: Build
65-
run: go build -v -o tenangdb ./cmd
65+
run: CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -v -o tenangdb ./cmd
6666

6767
build-matrix:
6868
name: Build for ${{ matrix.goos }}/${{ matrix.goarch }}
@@ -126,7 +126,7 @@ jobs:
126126
fi
127127
128128
echo "Building $BINARY_NAME"
129-
go build -ldflags "${LDFLAGS}" -o "$BINARY_NAME" ./cmd
129+
go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -ldflags "${LDFLAGS}" -o "$BINARY_NAME" ./cmd
130130
131131
- name: Test binary
132132
if: matrix.goos == 'linux' && matrix.goarch == 'amd64'

0 commit comments

Comments
 (0)