Skip to content

Commit

Permalink
Pin xgo to golang 1.10 to avoid issues
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Boerger <[email protected]>
  • Loading branch information
tboerger committed Oct 7, 2018
1 parent 5c3c9c4 commit b0cd8d2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pipeline:
- make build

app-windows:
image: karalabe/xgo-latest:latest
image: karalabe/xgo-1.10:latest
pull: true
group: release
environment:
Expand All @@ -96,7 +96,7 @@ pipeline:
event: [ push, tag ]

app-linux:
image: karalabe/xgo-latest:latest
image: karalabe/xgo-1.10:latest
pull: true
group: release
environment:
Expand All @@ -109,7 +109,7 @@ pipeline:
event: [ push, tag ]

app-darwin:
image: karalabe/xgo-latest:latest
image: karalabe/xgo-1.10:latest
pull: true
group: release
environment:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Added

* Add basic documentation
* Use xgo 1.10 for cross-compiling

## [0.1.0] - 2018-09-24

Expand Down
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,28 +97,28 @@ release-dirs:
.PHONY: release-windows
release-windows:
ifeq ($(CI),drone)
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out $(EXECUTABLE)-$(VERSION) ./cmd/$(NAME)
xgo -go 1.10 -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out $(EXECUTABLE)-$(VERSION) ./cmd/$(NAME)
mv /build/* $(DIST)/binaries
else
retool do xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out $(EXECUTABLE)-$(VERSION) ./cmd/$(NAME)
retool do xgo -go 1.10 -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out $(EXECUTABLE)-$(VERSION) ./cmd/$(NAME)
endif

.PHONY: release-linux
release-linux:
ifeq ($(CI),drone)
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'linux/*' -out $(EXECUTABLE)-$(VERSION) ./cmd/$(NAME)
xgo -go 1.10 -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'linux/*' -out $(EXECUTABLE)-$(VERSION) ./cmd/$(NAME)
mv /build/* $(DIST)/binaries
else
retool do xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'linux/*' -out $(EXECUTABLE)-$(VERSION) ./cmd/$(NAME)
retool do xgo -go 1.10 -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'linux/*' -out $(EXECUTABLE)-$(VERSION) ./cmd/$(NAME)
endif

.PHONY: release-darwin
release-darwin:
ifeq ($(CI),drone)
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/*' -out $(EXECUTABLE)-$(VERSION) ./cmd/$(NAME)
xgo -go 1.10 -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/*' -out $(EXECUTABLE)-$(VERSION) ./cmd/$(NAME)
mv /build/* $(DIST)/binaries
else
retool do xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/*' -out $(EXECUTABLE)-$(VERSION) ./cmd/$(NAME)
retool do xgo -go 1.10 -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/*' -out $(EXECUTABLE)-$(VERSION) ./cmd/$(NAME)
endif

.PHONY: release-copy
Expand Down

0 comments on commit b0cd8d2

Please sign in to comment.