diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 0191794..98e3936 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -23,5 +23,5 @@ jobs: env: CGO_ENABLED: 0 run: | - make build-all + make build-dev ls -lh k6* \ No newline at end of file diff --git a/Makefile b/Makefile index 7c7e799..d519509 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ all: build pairs := darwin/amd64 linux/amd64 linux/arm64 GOPATH ?= ~/go export GO111MODULE=on +VERSION ?= v0.0.8 build: go install github.com/k6io/xk6/cmd/xk6@v0.4.1 @@ -15,13 +16,13 @@ build-all: build-arm-v7 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@latest ;\ + GOOS=$$os GOARCH=$$arch $(GOPATH)/bin/xk6 build --with github.com/vesoft-inc/k6-plugin@$(VERSION) ;\ mv k6 k6-$$os-$$arch; \ done build-arm-v7: go install github.com/k6io/xk6/cmd/xk6@v0.4.1 - GOOS=linux GOARCH=arm64 GOARM=7 $(GOPATH)/bin/xk6 build --with github.com/vesoft-inc/k6-plugin@latest; + GOOS=linux GOARCH=arm64 GOARM=7 $(GOPATH)/bin/xk6 build --with github.com/vesoft-inc/k6-plugin@$(VERSION); mv k6 k6-linux-arm64-v7 build-dev: