Skip to content

Commit

Permalink
Merge pull request #6 from HarrisChu/enhance_makefile
Browse files Browse the repository at this point in the history
enhance makefile
  • Loading branch information
HarrisChu authored Oct 19, 2021
2 parents ed2d8e7 + ff7295b commit c2614e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ jobs:
env:
CGO_ENABLED: 0
run: |
make build-all
make build-dev
ls -lh k6*
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit c2614e4

Please sign in to comment.