Skip to content

Commit

Permalink
Update golang-cross to latest version and fix sysroot
Browse files Browse the repository at this point in the history
  • Loading branch information
kunickiaj committed Mar 28, 2022
1 parent 591e35d commit 38ba2f4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "golang-cross-sysroot"]
path = sysroots
path = sysroot
url = [email protected]:kunickiaj/golang-cross-sysroot.git
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PACKAGE_NAME := github.com/kunickiaj/beer
GOLANG_CROSS_VERSION ?= v1.17.6
GOLANG_CROSS_VERSION ?= v1.18.0

SYSROOT_DIR ?= sysroots
SYSROOT_ARCHIVE ?= sysroots.tar.bz2
Expand All @@ -22,7 +22,7 @@ release-dry-run:
-v `pwd`:/go/src/$(PACKAGE_NAME) \
-v `pwd`/sysroot:/sysroot \
-w /go/src/$(PACKAGE_NAME) \
ghcr.io/troian/golang-cross:${GOLANG_CROSS_VERSION} \
ghcr.io/goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \
--rm-dist --skip-validate --skip-publish

.PHONY: release
Expand All @@ -41,5 +41,5 @@ release:
-v `pwd`:/go/src/$(PACKAGE_NAME) \
-v `pwd`/sysroot:/sysroot \
-w /go/src/$(PACKAGE_NAME) \
ghcr.io/troian/golang-cross:${GOLANG_CROSS_VERSION} \
ghcr.io/goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \
release --rm-dist

0 comments on commit 38ba2f4

Please sign in to comment.