[change] makefile
This commit is contained in:
parent
5edc9e809f
commit
868ca0132e
1 changed files with 2 additions and 0 deletions
2
Makefile
2
Makefile
|
|
@ -197,6 +197,7 @@ artifacts-linux: clean
|
|||
sed -ie "s/const PRVERSION = \"DEV\"/const PRVERSION = \"${COMMIT}-${NOW}\"/g" share/const.go
|
||||
|
||||
# Making artifacts
|
||||
go mod tidy
|
||||
mkdir -p dist
|
||||
CGO_ENABLED=1 CGO_LDFLAGS="-static" GOOS=linux GOARCH=amd64 go build -v -o dist/yao-${VERSION}-linux-amd64
|
||||
CGO_ENABLED=1 CGO_LDFLAGS="-static" GOOS=linux GOARCH=arm64 CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ go build -v -o dist/yao-${VERSION}-linux-arm64
|
||||
|
|
@ -247,6 +248,7 @@ artifacts-macos: clean
|
|||
sed -ie "s/const PRVERSION = \"DEV\"/const PRVERSION = \"${COMMIT}-${NOW}\"/g" share/const.go
|
||||
|
||||
# Making artifacts
|
||||
go mod tidy
|
||||
mkdir -p dist
|
||||
CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -v -o dist/yao-${VERSION}-darwin-amd64
|
||||
CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -v -o dist/yao-${VERSION}-darwin-arm64
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue