From 6e5a54b6e513cac5bdcc61fe9a67d92b55986417 Mon Sep 17 00:00:00 2001 From: Vianney Tran Date: Thu, 20 Apr 2023 17:00:22 -0400 Subject: [PATCH 1/3] [circleci] Switch to newer images --- .circleci/config.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f341c3c..4d86f32 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ version: 2 jobs: "golang-1.16": docker: - - image: circleci/golang:1.16 + - image: cimg/go:1.16 steps: - checkout - run: 'wget https://github.com/DataDog/zstd/files/2246767/mr.zip' @@ -13,7 +13,7 @@ jobs: - run: 'PAYLOAD=`pwd`/mr go test -bench .' "golang-1.16-external-libzstd": docker: - - image: circleci/golang:1.16 + - image: cimg/go:1.16 steps: - checkout - run: 'sudo apt update' @@ -25,7 +25,7 @@ jobs: - run: 'PAYLOAD=`pwd`/mr go test -bench .' "golang-1.17": docker: - - image: circleci/golang:1.17 + - image: cimg/go:1.17 steps: - checkout - run: 'wget https://github.com/DataDog/zstd/files/2246767/mr.zip' @@ -35,7 +35,7 @@ jobs: - run: 'PAYLOAD=`pwd`/mr go test -bench .' "golang-1.17-external-libzstd": docker: - - image: circleci/golang:1.17 + - image: cimg/go:1.17 steps: - checkout - run: 'sudo apt update' @@ -47,7 +47,7 @@ jobs: - run: 'PAYLOAD=`pwd`/mr go test -bench .' "golang-latest": docker: - - image: circleci/golang:latest + - image: cimg/go:latest steps: - checkout - run: 'wget https://github.com/DataDog/zstd/files/2246767/mr.zip' @@ -57,7 +57,7 @@ jobs: - run: 'PAYLOAD=`pwd`/mr go test -bench .' "golang-latest-external-libzstd": docker: - - image: circleci/golang:latest + - image: cimg/go:latest steps: - checkout - run: 'sudo apt update' @@ -70,7 +70,7 @@ jobs: "golang-efence": resource_class: xlarge docker: - - image: circleci/golang:latest + - image: cimg/go:latest steps: - checkout - run: 'wget https://github.com/DataDog/zstd/files/2246767/mr.zip' @@ -80,7 +80,7 @@ jobs: "golang-efence-external-libzstd": resource_class: xlarge docker: - - image: circleci/golang:latest + - image: cimg/go:latest steps: - checkout - run: 'sudo apt update' From ff5a3bbaf8631a73e4d4bc6b018c2bfb0abf6315 Mon Sep 17 00:00:00 2001 From: Vianney Tran Date: Thu, 20 Apr 2023 17:01:23 -0400 Subject: [PATCH 2/3] [circleci] Update tested Go versions to 1.19 & 1.20 --- .circleci/config.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4d86f32..bbed2de 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,9 +1,9 @@ version: 2 jobs: - "golang-1.16": + "golang-1.19": docker: - - image: cimg/go:1.16 + - image: cimg/go:1.19 steps: - checkout - run: 'wget https://github.com/DataDog/zstd/files/2246767/mr.zip' @@ -11,9 +11,9 @@ jobs: - run: 'go build' - run: 'PAYLOAD=`pwd`/mr go test -v' - run: 'PAYLOAD=`pwd`/mr go test -bench .' - "golang-1.16-external-libzstd": + "golang-1.19-external-libzstd": docker: - - image: cimg/go:1.16 + - image: cimg/go:1.19 steps: - checkout - run: 'sudo apt update' @@ -23,9 +23,9 @@ jobs: - run: 'go build' - run: 'PAYLOAD=`pwd`/mr go test -v' - run: 'PAYLOAD=`pwd`/mr go test -bench .' - "golang-1.17": + "golang-1.20": docker: - - image: cimg/go:1.17 + - image: cimg/go:1.20 steps: - checkout - run: 'wget https://github.com/DataDog/zstd/files/2246767/mr.zip' @@ -33,9 +33,9 @@ jobs: - run: 'go build' - run: 'PAYLOAD=`pwd`/mr go test -v' - run: 'PAYLOAD=`pwd`/mr go test -bench .' - "golang-1.17-external-libzstd": + "golang-1.20-external-libzstd": docker: - - image: cimg/go:1.17 + - image: cimg/go:1.20 steps: - checkout - run: 'sudo apt update' @@ -100,10 +100,10 @@ workflows: version: 2 build: jobs: - - "golang-1.16" - - "golang-1.16-external-libzstd" - - "golang-1.17" - - "golang-1.17-external-libzstd" + - "golang-1.19" + - "golang-1.19-external-libzstd" + - "golang-1.20" + - "golang-1.20-external-libzstd" - "golang-latest" - "golang-latest-external-libzstd" - "golang-efence" From 1b4c894c78b713e358dd7365df7129a09d78ff04 Mon Sep 17 00:00:00 2001 From: Vianney Tran Date: Thu, 20 Apr 2023 17:07:30 -0400 Subject: [PATCH 3/3] [circle] Remove latest as cimg/go does not have the tag --- .circleci/config.yml | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index bbed2de..46aec33 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -45,32 +45,10 @@ jobs: - run: 'go build' - run: 'PAYLOAD=`pwd`/mr go test -v' - run: 'PAYLOAD=`pwd`/mr go test -bench .' - "golang-latest": - docker: - - image: cimg/go:latest - steps: - - checkout - - run: 'wget https://github.com/DataDog/zstd/files/2246767/mr.zip' - - run: 'unzip mr.zip' - - run: 'go build' - - run: 'PAYLOAD=`pwd`/mr go test -v' - - run: 'PAYLOAD=`pwd`/mr go test -bench .' - "golang-latest-external-libzstd": - docker: - - image: cimg/go:latest - steps: - - checkout - - run: 'sudo apt update' - - run: 'sudo apt install libzstd-dev' - - run: 'wget https://github.com/DataDog/zstd/files/2246767/mr.zip' - - run: 'unzip mr.zip' - - run: 'go build -tags external_libzstd' - - run: 'PAYLOAD=`pwd`/mr go test -tags external_libzstd -v' - - run: 'PAYLOAD=`pwd`/mr go test -tags external_libzstd -bench .' "golang-efence": resource_class: xlarge docker: - - image: cimg/go:latest + - image: cimg/go:1.20 steps: - checkout - run: 'wget https://github.com/DataDog/zstd/files/2246767/mr.zip' @@ -80,7 +58,7 @@ jobs: "golang-efence-external-libzstd": resource_class: xlarge docker: - - image: cimg/go:latest + - image: cimg/go:1.20 steps: - checkout - run: 'sudo apt update' @@ -104,8 +82,6 @@ workflows: - "golang-1.19-external-libzstd" - "golang-1.20" - "golang-1.20-external-libzstd" - - "golang-latest" - - "golang-latest-external-libzstd" - "golang-efence" - "golang-efence-external-libzstd" - "golang-i386"