Skip to content

Commit 03a0d98

Browse files
authored
Merge pull request #83 from wunderio/feature/static-build
Statically linked binary
2 parents 901a664 + c14189a commit 03a0d98

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/master.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
mkdir -p dist
5757
RELEASE_TAG="master"
5858
BIN_NAME="silta-${{ matrix.goos }}-${{ matrix.goarch }}"
59-
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} \
59+
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} CGO_ENABLED=0 \
6060
go build -ldflags "-X github.com/wunderio/silta-cli/internal/common.Version=${{ steps.vars.outputs.sha_short }} -s -w" \
6161
-o dist/$BIN_NAME
6262
tar -czf dist/silta-${RELEASE_TAG}-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz \

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
mkdir -p dist
5656
RELEASE_TAG="${{ steps.vars.outputs.tag }}"
5757
BIN_NAME="silta-${{ matrix.goos }}-${{ matrix.goarch }}"
58-
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} \
58+
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} CGO_ENABLED=0 \
5959
go build -ldflags "-X github.com/wunderio/silta-cli/internal/common.Version=${RELEASE_TAG} -s -w" \
6060
-o dist/$BIN_NAME
6161
tar -czf dist/silta-${RELEASE_TAG}-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz \

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
mkdir -p dist
5757
RELEASE_TAG="test"
5858
BIN_NAME="silta-${{ matrix.goos }}-${{ matrix.goarch }}"
59-
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} \
59+
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} CGO_ENABLED=0 \
6060
go build -ldflags "-X github.com/wunderio/silta-cli/internal/common.Version=${{ steps.vars.outputs.sha_short }} -s -w" \
6161
-o dist/$BIN_NAME
6262
tar -czf dist/silta-${RELEASE_TAG}-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz \

0 commit comments

Comments
 (0)