diff --git a/.circleci/config.yml b/.circleci/config.yml index 7cd48b5..026facd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,19 +1,21 @@ -version: 2 +version: '2.1' +orbs: + go: circleci/go@1.11.0 jobs: build: - docker: - - image: circleci/golang:1.16.5 - working_directory: ~/code + executor: + name: go/default + tag: '1.22.6' steps: - checkout - run: sudo apt-get update && sudo apt-get install -y upx - - restore_cache: - key: go-pkg-{{ checksum "go.sum" }} + - go/load-cache - run: ./build-release.sh - - save_cache: - paths: - - /go/pkg - key: go-pkg-{{ checksum "go.sum" }} + - go/save-cache - store_artifacts: path: bin destination: bin +workflows: + main: + jobs: + - build