]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Cache the GOCACHE
authorMatt Joiner <anacrolix@gmail.com>
Wed, 9 Jan 2019 01:25:06 +0000 (12:25 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 9 Jan 2019 01:25:06 +0000 (12:25 +1100)
Go mod doesn't store build artifacts in $GOPATH/pkg anymore.

.circleci/config.yml

index 3cfa7c4707c80f43826ed78fb85aad61a322d170..34d8e80192b8fcab0a5e7e972e263d6873d16382 100644 (file)
@@ -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