diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 33c02a3..ea99f8c 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -840,3 +840,37 @@ jobs: - name: Test working-directory: blake3 run: go test ./... + mmcloughlin-md4: + 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 mmcloughlin/md4 + uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 + with: + repository: mmcloughlin/md4 + ref: v0.1.2 + path: md4 + persist-credentials: false + - name: Avo Module Replacement + working-directory: md4/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: md4 + run: go generate -v -x + - name: Diff + working-directory: md4 + run: git diff + - name: Test + working-directory: md4 + run: go test ./... diff --git a/tests/thirdparty/packages.json b/tests/thirdparty/packages.json index e48948e..6025585 100644 --- a/tests/thirdparty/packages.json +++ b/tests/thirdparty/packages.json @@ -201,7 +201,7 @@ }, "metadata": { "description": "Optimized Go Compression Packages", - "stars": 2701 + "stars": 2702 }, "default_branch": "master", "version": "2adf487b3e02f95ce7efd6e4953fda0ae7ecd080", @@ -623,5 +623,25 @@ ] } ] + }, + { + "repository": { + "owner": "mmcloughlin", + "name": "md4" + }, + "metadata": { + "description": "Assembly-optimized MD4 hash algorithm in Go", + "stars": 15 + }, + "default_branch": "main", + "version": "v0.1.2", + "module": "asm/go.mod", + "generate": [ + { + "commands": [ + "go generate -v -x" + ] + } + ] } ]