From: Matt Joiner Date: Wed, 9 Jan 2019 01:25:06 +0000 (+1100) Subject: Cache the GOCACHE X-Git-Tag: v1.1.0~25^2~1 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=fa4dbacd799db7fe72cdebafcf23efb3b238cd6e;p=btrtrc.git Cache the GOCACHE Go mod doesn't store build artifacts in $GOPATH/pkg anymore. --- diff --git a/.circleci/config.yml b/.circleci/config.yml index 3cfa7c47..34d8e801 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -30,6 +30,9 @@ jobs: - restore_cache: keys: - go-pkg + - restore_cache: + keys: + - go-cache - run: go get -d ./... - run: go test -v -race ./... -count 2 - run: go test -bench . ./... @@ -45,3 +48,8 @@ jobs: - ~/go/pkg - run: sudo modprobe fuse - run: fs/test.sh + - save_cache: + key: go-cache-{{ epoch }} + paths: + - ~/.cache/go-build + when: always