mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-24 10:07:21 +02:00
fix: Build server with correct option (#237)
We must build server with CGO_ENABLED=1 because of mattn/sqlite3. Co-authored-by: Yves-Gaël BILLET <ygbillet@ifotec.com>
This commit is contained in:
parent
2ff91e6a05
commit
2f222cea25
2
Makefile
2
Makefile
@ -77,7 +77,7 @@ release-agent:
|
||||
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o release/drone-agent github.com/woodpecker-ci/woodpecker/cmd/drone-agent
|
||||
|
||||
release-server:
|
||||
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o release/drone-server github.com/woodpecker-ci/woodpecker/cmd/drone-server
|
||||
GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -ldflags '${LDFLAGS}' -o release/drone-server github.com/woodpecker-ci/woodpecker/cmd/drone-server
|
||||
|
||||
release-cli:
|
||||
# disable CGO for cross-compiling
|
||||
|
Loading…
Reference in New Issue
Block a user