diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 33c02a39..191e0044 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -840,3 +840,37 @@ jobs: - name: Test working-directory: blake3 run: go test ./... + probakowski-curve1174: + runs-on: ubuntu-latest + steps: + - name: Install Go + uses: actions/setup-go@37335c7bb261b353407cff977110895fa0b4f7d8 # v2.1.3 + with: + go-version: 1.18.x + - name: Checkout avo + uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 + with: + path: avo + persist-credentials: false + - name: Checkout probakowski/curve1174 + uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 + with: + repository: probakowski/curve1174 + ref: 0997c2c2577210582cdd99e207a4be81fcdd1f7b + path: curve1174 + persist-credentials: false + - name: Avo Module Replacement + working-directory: curve1174 + 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: curve1174/gen + run: go generate -v -x + - name: Diff + working-directory: curve1174 + run: git diff + - name: Test + working-directory: curve1174 + run: go test ./... diff --git a/tests/thirdparty/packages.json b/tests/thirdparty/packages.json index e48948e7..70e61c59 100644 --- a/tests/thirdparty/packages.json +++ b/tests/thirdparty/packages.json @@ -623,5 +623,26 @@ ] } ] + }, + { + "repository": { + "owner": "probakowski", + "name": "curve1174" + }, + "metadata": { + "description": "Go implementation of Curve1147 arithemtic", + "stars": 3 + }, + "default_branch": "main", + "version": "0997c2c2577210582cdd99e207a4be81fcdd1f7b", + "module": "go.mod", + "generate": [ + { + "dir": "gen", + "commands": [ + "go generate -v -x" + ] + } + ] } ]