repair nightly build go mod
@@ -99,7 +99,7 @@ jobs:
# specify the version
- image: iotex/iotex-core-ci:latest
- working_directory: /go/src/github.com/iotexproject/iotex-core
+ working_directory: ~/iotex-core
steps:
- checkout
# specify any bash command here prefixed with `run: `
@@ -110,7 +110,7 @@ jobs:
# specify the version
- image: iotex/iotex-core-ci:latest
- working_directory: /go/src/github.com/iotexproject/iotex-core
+ working_directory: ~/iotex-core
steps:
- checkout
- run: cd cli/ioctl/ && ./buildcli.sh
@@ -136,7 +136,7 @@ jobs:
macos:
xcode: "10.2.0" # not supported > 10.2.0
- working_directory: ~/go/src/github.com/iotexproject/iotex-core
+ working_directory: ~/iotex-core
steps:
- checkout
@@ -146,6 +146,19 @@ jobs:
curl -o go1.12.5.darwin-amd64.tar.gz https://dl.google.com/go/go1.12.5.darwin-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.12.5.darwin-amd64.tar.gz
rm go1.12.5.darwin-amd64.tar.gz
+ - restore_cache:
+ keys:
+ - go-mod-v1-{{ checksum "go.sum" }}
+ - run:
+ name: go mod
+ command: |
+ export PATH=$PATH:/usr/local/go/bin
+ go mod download
+ go mod vendor
+ - save_cache:
+ key: go-mod-v1-{{ checksum "go.sum" }}
+ paths:
+ - ~/go/pkg/mod
- run:
name: SET go env and buildcli.sh,build_injector.sh
command: |
