Win binaries (#6831)

This commit is contained in:
Alex Sharov 2023-02-10 19:12:18 +07:00 committed by GitHub
parent 77f010523d
commit 6e85024a2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View File

@ -50,6 +50,17 @@ builds:
tags: [ nosqlite, noboltdb ]
ldflags: -s -w -extldflags "-static" # We need to build a static binary because we are building in a glibc based system and running in a musl container
- id: windows-amd64
main: ./cmd/erigon
binary: erigon
goos: [ windows ]
goarch: [ amd64 ]
env:
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
tags: [ nosqlite, noboltdb ]
ldflags: -s -w
snapshot:
name_template: "{{ .Tag }}.next"

View File

@ -229,7 +229,7 @@ release-dry-run: git-submodules
-v `pwd`:/go/src/$(PACKAGE_NAME) \
-w /go/src/$(PACKAGE_NAME) \
ghcr.io/goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \
--rm-dist --skip-validate --skip-publish
--clean --skip-validate --skip-publish
.PHONY: release
release: git-submodules
@ -244,7 +244,7 @@ release: git-submodules
-v `pwd`:/go/src/$(PACKAGE_NAME) \
-w /go/src/$(PACKAGE_NAME) \
ghcr.io/goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \
--rm-dist --skip-validate
--clean --skip-validate
@docker image push --all-tags thorax/erigon
@docker image push --all-tags ghcr.io/ledgerwatch/erigon