Commit 4a9b37ad authored by Gurvinder Singh's avatar Gurvinder Singh
Browse files

build to run in without c depenency

parent 134f25b6
Pipeline #11845 passed with stages
in 1 minute and 42 seconds
......@@ -23,3 +23,5 @@ _testmain.go
*.exe
*.test
*.prof
jwt-tokenissuer
......@@ -7,7 +7,7 @@ all: test build dist
build:
mkdir -p dist/linux-amd64
${GO_EXECUTABLE} build -o dist/linux-amd64/jwt-tokenissuer -ldflags "-X main.version=${VERSION}"
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 ${GO_EXECUTABLE} build -o dist/linux-amd64/jwt-tokenissuer -ldflags "-X main.version=${VERSION}"
test:
${GO_EXECUTABLE} test --short $(PACKAGE_DIRS)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment