From 0e389144ab6a39cdf66c7a57b7b12871d5267a8b Mon Sep 17 00:00:00 2001 From: Kevin Davis Date: Tue, 15 Oct 2019 16:06:12 -0400 Subject: [PATCH] fix ci config --- .circleci/config.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2e72b807..6f796b38 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -30,6 +30,33 @@ commands: jobs: setup-dependencies: + executor: golang + steps: + - checkout + - restore_cache: + name: "Restore go modules cache" + keys: + - go-mod-v2-{{ checksum "go.sum" }} + - run: + name: Cache go modules + command: make go-mod-cache + - run: + name: Build + command: make build + - run: + name: Git garbage collection + command: git gc + - save_cache: + name: "Save go modules cache" + key: go-mod-v2-{{ checksum "go.sum" }} + paths: + - "/go/pkg/mod" + - save_cache: + name: "Save source code cache" + key: go-src-v1-{{ .Revision }} + paths: + - ".git" + setup-dependencies-tags: executor: golang steps: - checkout