diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 61fe833..adb03b0 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -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/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: 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 ./... diff --git a/tests/thirdparty/packages.json b/tests/thirdparty/packages.json index f452723..69518c7 100644 --- a/tests/thirdparty/packages.json +++ b/tests/thirdparty/packages.json @@ -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" + ] + } + ] } ]