From 6c0ed1c4e8934add6379ad5ba32bf0e4e9c5bca7 Mon Sep 17 00:00:00 2001 From: Michael McLoughlin Date: Sun, 7 Nov 2021 18:29:47 -0800 Subject: [PATCH] tests/thirdparty: add filippo.io/edwards25519 (#227) Updates #226 --- .github/workflows/packages.yml | 34 ++++++++++++++++++++++++++++++++++ tests/thirdparty/packages.json | 24 +++++++++++++++++++++++- 2 files changed, 57 insertions(+), 1 deletion(-) diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index c648546..5bddbd7 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -733,3 +733,37 @@ jobs: - name: Test working-directory: crypto/curve25519 run: go test ./... + FiloSottile-edwards25519: + 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 FiloSottile/edwards25519 + uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 + with: + repository: FiloSottile/edwards25519 + ref: v1.0.0-rc.1 + path: edwards25519 + persist-credentials: false + - name: Avo Module Replacement + working-directory: edwards25519/field/_asm + 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: edwards25519/field/_asm + run: go generate -v -x + - name: Diff + working-directory: edwards25519 + run: git diff + - name: Test + working-directory: edwards25519 + run: go test ./... diff --git a/tests/thirdparty/packages.json b/tests/thirdparty/packages.json index feb4b69..69e5438 100644 --- a/tests/thirdparty/packages.json +++ b/tests/thirdparty/packages.json @@ -535,7 +535,7 @@ "metadata": { "description": "[mirror] Go supplementary cryptography libraries", "homepage": "https://golang.org/x/crypto", - "stars": 2283 + "stars": 2282 }, "default_branch": "master", "version": "089bfa5675191fd96a44247682f76ebca03d7916", @@ -549,5 +549,27 @@ ] } ] + }, + { + "repository": { + "owner": "FiloSottile", + "name": "edwards25519" + }, + "metadata": { + "description": "filippo.io/edwards25519 — A safer, faster, and more powerful low-level edwards25519 Go implementation.", + "homepage": "https://filippo.io/edwards25519", + "stars": 71 + }, + "default_branch": "main", + "version": "v1.0.0-rc.1", + "module": "field/_asm/go.mod", + "generate": [ + { + "dir": "field/_asm", + "commands": [ + "go generate -v -x" + ] + } + ] } ]