Skip to content

Commit

Permalink
Remove xgo builds (#1628)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Babik authored Oct 5, 2019
1 parent 26880b8 commit 94228bc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 100 deletions.
15 changes: 0 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ DOCKER_IMAGE_CUSTOM_TAG ?= $(RELEASE_TAG)
DOCKER_TEST_WORKDIR = /go/src/github.com/status-im/status-go/
DOCKER_TEST_IMAGE = golang:1.10

XGO_NAME ?= status-go
XGO_TARGETS ?= linux/amd64,windows/amd64,darwin/amd64

# This is a code for automatic help generator.
# It supports ANSI colors and categories.
# To add new item into help output, simply add comments
Expand Down Expand Up @@ -105,15 +102,6 @@ statusgo-ios: ##@cross-compile Build status-go for iOS
gomobile bind -v -target=ios -ldflags="-s -w" $(BUILD_FLAGS_MOBILE) -o build/bin/Statusgo.framework github.com/status-im/status-go/mobile
@echo "iOS framework cross compilation done in build/bin/Statusgo.framework"

statusgo-xgo: xgo-install ##@cross-compile Build status-go for xgo targets
$(GOPATH)/bin/xgo -v \
-out=$(XGO_NAME) \
-dest=$(GOBIN) \
-targets=$(XGO_TARGETS) \
-tags '$(BUILD_TAGS)' \
$(BUILD_FLAGS) ./cmd/statusd
@echo "Linux cross compilation done."

statusgo-library: ##@cross-compile Build status-go as static library for current platform
@echo "Building static library..."
go build -buildmode=c-archive -o $(GOBIN)/libstatus.a $(BUILD_FLAGS) ./lib
Expand Down Expand Up @@ -212,9 +200,6 @@ release: check-existing-release
echo "Aborting." && exit 1; \
fi

xgo-install:
go get -u github.com/karalabe/xgo

gomobile-install: xtools-install
go get golang.org/x/mobile/cmd/gomobile

Expand Down
5 changes: 1 addition & 4 deletions _assets/ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,13 @@ pipeline {
stage('Docker') { steps { script {
dock = lib.buildBranch('status-go/platforms/docker')
} } }
stage('XGO') { steps { script {
xgo = lib.buildBranch('status-go/platforms/xgo')
} } }
} // parallel
} // stage(Build)

stage('Archive') {
steps { script {
sh("rm -fr ${env.RELEASE_DIR}/*")
[ios, android, linux, xgo].each { platformBuild ->
[ios, android, linux].each { platformBuild ->
lib.copyArts(platformBuild)
}
dir(env.RELEASE_DIR) {
Expand Down
81 changes: 0 additions & 81 deletions _assets/ci/Jenkinsfile.xgo

This file was deleted.

0 comments on commit 94228bc

Please sign in to comment.