Tweaking cache for CI

This commit is contained in:
Gabriel Simmer 2020-04-03 13:53:25 +01:00
parent 2ab4de5526
commit 0902f8a429
No known key found for this signature in database
GPG key ID: 33BA4D83B160A0A9

View file

@ -1,4 +1,4 @@
version: 2.1 version: 2
jobs: jobs:
build: build:
docker: docker:
@ -7,12 +7,12 @@ jobs:
- checkout - checkout
- restore_cache: - restore_cache:
keys: keys:
- go-mod-{{ checksum "go.sum" }}-v1 - go-mod-{{ checksum "go.sum" }}-v2
- go-mod-{{ checksum "go.sum" }} - go-mod-{{ checksum "go.sum" }}
- go-mod - go-mod
- restore_cache: - restore_cache:
keys: keys:
- upx-3.96 - upx-3.96-v2
- run: - run:
name: Install UPX name: Install UPX
command: | command: |
@ -29,11 +29,11 @@ jobs:
- store_artifacts: - store_artifacts:
path: build path: build
- save_cache: - save_cache:
key: go-mod-{{ checksum "go.sum" }}-v1 key: go-mod-{{ checksum "go.sum" }}-v2
paths: paths:
- /go/pkg/mod - /home/circleci/go/pkg/mod
- save_cache: - save_cache:
key: upx-3.96 key: upx-3.96-v2
paths: paths:
- /home/circleci/upx - /home/circleci/upx
test: test:
@ -43,7 +43,7 @@ jobs:
- checkout - checkout
- restore_cache: - restore_cache:
keys: keys:
- go-mod-{{ checksum "go.sum" }}-v1 - go-mod-{{ checksum "go.sum" }}-v2
- go-mod-{{ checksum "go.sum" }} - go-mod-{{ checksum "go.sum" }}
- go-mod - go-mod
- run: - run: