tests/thirdparty: add klauspost/compress/zstd (#263)

Upgrade test version of klauspost/compress. Fix s2 test and add zstd package.
This commit is contained in:
Michael McLoughlin
2022-04-24 21:54:57 -07:00
committed by GitHub
parent 84071ae4f9
commit 3e9461adf1
2 changed files with 58 additions and 4 deletions

View File

@@ -301,7 +301,7 @@ jobs:
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
with:
repository: klauspost/compress
ref: 2adf487b3e02f95ce7efd6e4953fda0ae7ecd080
ref: 2f236383d7c2faa8ef7e354ccecb926a5b47a24d
path: compress
persist-credentials: false
- name: Avo Module Replacement
@@ -312,13 +312,48 @@ jobs:
go mod tidy -modfile=go.mod
- name: Generate
working-directory: compress/s2/_generate
run: go run gen.go -out ../encodeblock_amd64.s -stubs ../encodeblock_amd64.go -pkg s2
run: go generate -v -x
- name: Diff
working-directory: compress/s2
run: git diff
- name: Test
working-directory: compress/s2
run: go test ./...
klauspost-compress-zstd:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab # v3.0.0
with:
go-version: 1.18.x
check-latest: true
- name: Checkout avo
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
with:
path: avo
persist-credentials: false
- name: Checkout klauspost/compress
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
with:
repository: klauspost/compress
ref: 2f236383d7c2faa8ef7e354ccecb926a5b47a24d
path: compress
persist-credentials: false
- name: Avo Module Replacement
working-directory: compress/zstd/_generate
run: |
go mod edit -modfile=go.mod -require=github.com/mmcloughlin/avo@v0.0.0-00010101000000-000000000000
go mod edit -modfile=go.mod -replace=github.com/mmcloughlin/avo=${{ github.workspace }}/avo
go mod tidy -modfile=go.mod
- name: Generate
working-directory: compress/zstd/_generate
run: go generate -v -x
- name: Diff
working-directory: compress/zstd
run: git diff
- name: Test
working-directory: compress/zstd
run: go test -short
dgryski-go-bloomindex:
runs-on: ubuntu-latest
steps: