Skip to content

Commit

Permalink
tests/thirdparty: add lukechampine/blake3 (#231)
Browse files Browse the repository at this point in the history
Fixes #164
  • Loading branch information
mmcloughlin authored Nov 13, 2021
1 parent b76e849 commit 68350e4
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 8 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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 ./...
47 changes: 39 additions & 8 deletions tests/thirdparty/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"metadata": {
"description": "XXH3 algorithm in Go",
"stars": 198
"stars": 203
},
"default_branch": "master",
"version": "v1.0.0-rc1",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -150,7 +150,7 @@
},
"metadata": {
"description": "Reed-Solomon Erasure Coding in Go",
"stars": 1343
"stars": 1345
},
"default_branch": "master",
"version": "922778284547557265cff0f903ab5f4c27e40ae9",
Expand Down Expand Up @@ -201,7 +201,7 @@
},
"metadata": {
"description": "Optimized Go Compression Packages",
"stars": 2442
"stars": 2448
},
"default_branch": "master",
"version": "2adf487b3e02f95ce7efd6e4953fda0ae7ecd080",
Expand Down Expand Up @@ -408,7 +408,7 @@
},
"metadata": {
"description": "An alternative interface to Sia",
"stars": 49
"stars": 50
},
"default_branch": "master",
"version": "dff56a80f83653cb14eeeb57ba6ba3c3e942c412",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -514,7 +514,7 @@
},
"metadata": {
"description": "High-performance Curve25519/ristretto255 for Go",
"stars": 32
"stars": 34
},
"default_branch": "master",
"version": "d5a936accd94ef9da4c0fe9db0a6342dcdcfeadf",
Expand All @@ -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",
Expand Down Expand Up @@ -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"
]
}
]
}
]

0 comments on commit 68350e4

Please sign in to comment.