-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,29 +5,30 @@ pairs := darwin/amd64 linux/amd64 linux/arm64 | |
GOPATH ?= ~/go | ||
export GO111MODULE=on | ||
VERSION ?= v0.0.8 | ||
K6_VERSION ?= v0.33.0 | ||
|
||
build: | ||
go install github.com/k6io/xk6/cmd/[email protected] | ||
$(GOPATH)/bin/xk6 build --with github.com/vesoft-inc/k6-plugin@$(VERSION); | ||
$(GOPATH)/bin/xk6 build $(K6_VERSION) --with github.com/vesoft-inc/k6-plugin@$(VERSION); | ||
|
||
build-all: build-arm-v7 | ||
|
||
go install github.com/k6io/xk6/cmd/[email protected] | ||
for pair in $(pairs);do echo $$pair; \ | ||
os=`echo $$pair | cut -d / -f 1 ` ;\ | ||
arch=`echo $$pair | cut -d / -f 2 ` ;\ | ||
GOOS=$$os GOARCH=$$arch $(GOPATH)/bin/xk6 build --with github.com/vesoft-inc/k6-plugin@$(VERSION) ;\ | ||
GOOS=$$os GOARCH=$$arch $(GOPATH)/bin/xk6 build $(K6_VERSION) --with github.com/vesoft-inc/k6-plugin@$(VERSION) ;\ | ||
mv k6 k6-$$os-$$arch; \ | ||
done | ||
|
||
build-arm-v7: | ||
go install github.com/k6io/xk6/cmd/[email protected] | ||
GOOS=linux GOARCH=arm64 GOARM=7 $(GOPATH)/bin/xk6 build --with github.com/vesoft-inc/k6-plugin@$(VERSION); | ||
GOOS=linux GOARCH=arm64 GOARM=7 $(GOPATH)/bin/xk6 build $(K6_VERSION) --with github.com/vesoft-inc/k6-plugin@$(VERSION); | ||
mv k6 k6-linux-arm64-v7 | ||
|
||
build-dev: | ||
go install github.com/k6io/xk6/cmd/[email protected] | ||
$(GOPATH)/bin/xk6 build --with github.com/vesoft-inc/k6-plugin@latest=${PWD}/../k6-plugin; | ||
$(GOPATH)/bin/xk6 build $(K6_VERSION) --with github.com/vesoft-inc/k6-plugin@latest=${PWD}/../k6-plugin; | ||
|
||
.PHONY: format | ||
format: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters