From 68350e4e0875c6dbd87c13bb5f894da50ab1c720 Mon Sep 17 00:00:00 2001 From: Michael McLoughlin Date: Fri, 12 Nov 2021 22:22:50 -0800 Subject: [PATCH] tests/thirdparty: add lukechampine/blake3 (#231) Fixes #164 --- .github/workflows/packages.yml | 39 ++++++++++++++++++++++++++++ tests/thirdparty/packages.json | 47 ++++++++++++++++++++++++++++------ 2 files changed, 78 insertions(+), 8 deletions(-) diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index ee2673f..85d1b7f 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -768,3 +768,42 @@ jobs: - name: Test working-directory: edwards25519 run: go test ./... + lukechampine-blake3: + runs-on: ubuntu-latest + steps: + - name: Install Go + uses: actions/setup-go@37335c7bb261b353407cff977110895fa0b4f7d8 # v2.1.3 + with: + go-version: 1.17.x + - name: Checkout avo + uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 + with: + path: avo + persist-credentials: false + - name: Checkout lukechampine/blake3 + uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 + with: + repository: lukechampine/blake3 + ref: v1.1.7 + path: blake3 + persist-credentials: false + - name: Setup Generator Module + working-directory: blake3/avo + run: | + sed -i.bak '/build ignore/d' gen.go + go mod init github.com/lukechampine/blake3/avo + - name: Avo Module Replacement + working-directory: blake3/avo + 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: blake3/avo + run: go run gen.go -out ../blake3_amd64.s + - name: Diff + working-directory: blake3 + run: git diff + - name: Test + working-directory: blake3 + run: go test ./... diff --git a/tests/thirdparty/packages.json b/tests/thirdparty/packages.json index fdcbb28..44d2180 100644 --- a/tests/thirdparty/packages.json +++ b/tests/thirdparty/packages.json @@ -6,7 +6,7 @@ }, "metadata": { "description": "XXH3 algorithm in Go", - "stars": 198 + "stars": 203 }, "default_branch": "master", "version": "v1.0.0-rc1", @@ -107,7 +107,7 @@ }, "metadata": { "description": "Accelerate aggregated MD5 hashing performance up to 8x for AVX512 and 4x for AVX2. Useful for server applications that need to compute many MD5 sums in parallel.", - "stars": 87 + "stars": 88 }, "default_branch": "master", "version": "30ad8af83f6868c2a30c615f3edf1a9366bf3f89", @@ -150,7 +150,7 @@ }, "metadata": { "description": "Reed-Solomon Erasure Coding in Go", - "stars": 1343 + "stars": 1345 }, "default_branch": "master", "version": "922778284547557265cff0f903ab5f4c27e40ae9", @@ -201,7 +201,7 @@ }, "metadata": { "description": "Optimized Go Compression Packages", - "stars": 2442 + "stars": 2448 }, "default_branch": "master", "version": "2adf487b3e02f95ce7efd6e4953fda0ae7ecd080", @@ -408,7 +408,7 @@ }, "metadata": { "description": "An alternative interface to Sia", - "stars": 49 + "stars": 50 }, "default_branch": "master", "version": "dff56a80f83653cb14eeeb57ba6ba3c3e942c412", @@ -447,7 +447,7 @@ }, "metadata": { "description": "Go library providing algorithms optimized to leverage the characteristics of modern CPUs", - "stars": 548 + "stars": 566 }, "default_branch": "main", "version": "v1.0.0", @@ -514,7 +514,7 @@ }, "metadata": { "description": "High-performance Curve25519/ristretto255 for Go", - "stars": 32 + "stars": 34 }, "default_branch": "master", "version": "d5a936accd94ef9da4c0fe9db0a6342dcdcfeadf", @@ -536,7 +536,7 @@ "metadata": { "description": "[mirror] Go supplementary cryptography libraries", "homepage": "https://golang.org/x/crypto", - "stars": 2282 + "stars": 2283 }, "default_branch": "master", "version": "089bfa5675191fd96a44247682f76ebca03d7916", @@ -572,5 +572,36 @@ ] } ] + }, + { + "repository": { + "owner": "lukechampine", + "name": "blake3" + }, + "metadata": { + "description": "A pure-Go implementation of the BLAKE3 cryptographic hash function", + "stars": 249 + }, + "default_branch": "master", + "version": "v1.1.7", + "module": "avo/go.mod", + "setup": [ + { + "name": "Setup Generator Module", + "dir": "avo", + "commands": [ + "sed -i.bak '/build ignore/d' gen.go", + "go mod init github.com/lukechampine/blake3/avo" + ] + } + ], + "generate": [ + { + "dir": "avo", + "commands": [ + "go run gen.go -out ../blake3_amd64.s" + ] + } + ] } ]