tests/thirdparty: golang.org/x/crypto/curve25519 (#222)

This commit is contained in:
Michael McLoughlin
2021-11-07 01:39:03 -07:00
committed by GitHub
parent 14c87c7da2
commit afe2d539b8
2 changed files with 51 additions and 0 deletions

View File

@@ -699,3 +699,37 @@ jobs:
- name: Test - name: Test
working-directory: curve25519-voi working-directory: curve25519-voi
run: go test ./... run: go test ./...
golang-crypto-curve25519:
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 golang/crypto
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
with:
repository: golang/crypto
ref: 089bfa5675191fd96a44247682f76ebca03d7916
path: crypto
persist-credentials: false
- name: Avo Module Replacement
working-directory: crypto/curve25519/internal/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: crypto/curve25519/internal/field/_asm
run: go generate -v -x
- name: Diff
working-directory: crypto/curve25519
run: git diff
- name: Test
working-directory: crypto/curve25519
run: go test ./...

View File

@@ -441,5 +441,22 @@
] ]
} }
] ]
},
{
"repository": {
"owner": "golang",
"name": "crypto"
},
"version": "089bfa5675191fd96a44247682f76ebca03d7916",
"pkg": "curve25519",
"module": "internal/field/_asm/go.mod",
"generate": [
{
"dir": "internal/field/_asm",
"commands": [
"go generate -v -x"
]
}
]
} }
] ]