tests/thirdparty: add lukechampine/blake3 (#231)

Fixes #164
This commit is contained in:
Michael McLoughlin
2021-11-12 22:22:50 -08:00
committed by GitHub
parent b76e849b5c
commit 68350e4e08
2 changed files with 78 additions and 8 deletions

View File

@@ -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 ./...