Skip to content

Commit

Permalink
TT-10897: disable CGO from builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mitjaziv committed Jan 5, 2024
1 parent 67f2461 commit c8e8ebf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

env:
BINARY_NAME: mservctl
CGO_ENABLED: 0

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ test: $(shell find . -type f -iname "*.go")
# Lint golangci lint
lint: .golangci.yaml hack/bin/golangci-lint
> mkdir -p $(@D)
> hack/bin/golangci-lint run
> CGO_ENABLED=0 hack/bin/golangci-lint run

hack/bin/golangci-lint:
> curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh \
Expand All @@ -89,7 +89,7 @@ mserv:

mservctl:
> cd mservctl
> go build -o ../bin/mservctl
> CGO_ENABLED=0 go build -o ../bin/mservctl
.PHONY: mservctl

start: ## Start runs development environment with mserv and mongo in docker-compose.
Expand Down

0 comments on commit c8e8ebf

Please sign in to comment.