Skip to content

Commit 5962e6a

Browse files
committed
Update circleci config to add build against external libzstd
1 parent 88365f3 commit 5962e6a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.circleci/config.yml

+26
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ jobs:
3131
- run: 'go build'
3232
- run: 'PAYLOAD=`pwd`/mr go test -v'
3333
- run: 'PAYLOAD=`pwd`/mr go test -bench .'
34+
"golang-latest-external-libzstd":
35+
docker:
36+
- image: circleci/golang:latest
37+
steps:
38+
- checkout
39+
- run: 'sudo apt update'
40+
- run: 'sudo apt install libzstd-dev'
41+
- run: 'wget https://github.com/DataDog/zstd/files/2246767/mr.zip'
42+
- run: 'unzip mr.zip'
43+
- run: 'go build -tags external_libzstd'
44+
- run: 'PAYLOAD=`pwd`/mr go test -tags external_libzstd -v'
45+
- run: 'PAYLOAD=`pwd`/mr go test -tags external_libzstd -bench .'
3446
"golang-efence":
3547
resource_class: xlarge
3648
docker:
@@ -41,6 +53,18 @@ jobs:
4153
- run: 'unzip mr.zip'
4254
- run: 'go build'
4355
- run: 'PAYLOAD=`pwd`/mr GODEBUG=efence=1 go test -v'
56+
"golang-efence-external-libzstd":
57+
resource_class: xlarge
58+
docker:
59+
- image: circleci/golang:latest
60+
steps:
61+
- checkout
62+
- run: 'sudo apt update'
63+
- run: 'sudo apt install libzstd-dev'
64+
- run: 'wget https://github.com/DataDog/zstd/files/2246767/mr.zip'
65+
- run: 'unzip mr.zip'
66+
- run: 'go build -tags external_libzstd'
67+
- run: 'PAYLOAD=`pwd`/mr GODEBUG=efence=1 go test -tags external_libzstd -v'
4468
"golang-zstd-legacy-support":
4569
docker:
4670
- image: circleci/golang:latest
@@ -64,6 +88,8 @@ workflows:
6488
- "golang-1.14"
6589
- "golang-1.15"
6690
- "golang-latest"
91+
- "golang-latest-external-libzstd"
6792
- "golang-efence"
93+
- "golang-efence-external-libzstd"
6894
- "golang-i386"
6995
- "golang-zstd-legacy-support"

0 commit comments

Comments
 (0)