Skip to content

Commit

Permalink
tests/thirdparty: add oasisprotocol/curve25519-voi (mmcloughlin#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcloughlin authored Nov 7, 2021
1 parent 2ca6e5e commit 14c87c7
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -665,3 +665,37 @@ jobs:
- name: Test
working-directory: lwcrypto/grain
run: go test ./...
oasisprotocol-curve25519-voi:
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 oasisprotocol/curve25519-voi
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
with:
repository: oasisprotocol/curve25519-voi
ref: d5a936accd94ef9da4c0fe9db0a6342dcdcfeadf
path: curve25519-voi
persist-credentials: false
- name: Avo Module Replacement
working-directory: curve25519-voi/internal/asm/amd64
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: curve25519-voi/internal/asm/amd64
run: bash -ex gen.sh
- name: Diff
working-directory: curve25519-voi
run: git diff
- name: Test
working-directory: curve25519-voi
run: go test ./...
16 changes: 16 additions & 0 deletions tests/thirdparty/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -425,5 +425,21 @@
]
}
]
},
{
"repository": {
"owner": "oasisprotocol",
"name": "curve25519-voi"
},
"version": "d5a936accd94ef9da4c0fe9db0a6342dcdcfeadf",
"module": "internal/asm/amd64/go.mod",
"generate": [
{
"dir": "internal/asm/amd64",
"commands": [
"bash -ex gen.sh"
]
}
]
}
]

0 comments on commit 14c87c7

Please sign in to comment.