Skip to content

Commit

Permalink
tests/thirdparty: add ericlagergren/lwcrypto (#219)
Browse files Browse the repository at this point in the history
Fixes #188
  • Loading branch information
mmcloughlin authored Nov 7, 2021
1 parent 6acd6a0 commit 2ca6e5e
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 0 deletions.
72 changes: 72 additions & 0 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -593,3 +593,75 @@ jobs:
- name: Test
working-directory: asm
run: go test ./...
ericlagergren-lwcrypto-ascon:
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 ericlagergren/lwcrypto
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
with:
repository: ericlagergren/lwcrypto
ref: 0c42b05eddc34c58bf8e0cd4250c5cd2c256ea57
path: lwcrypto
persist-credentials: false
- name: Avo Module Replacement
working-directory: lwcrypto/ascon/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: lwcrypto/ascon/asm
run: |
go mod edit -require=github.com/ericlagergren/lwcrypto@v0.0.0-00010101000000-000000000000
go generate -v -x
- name: Diff
working-directory: lwcrypto/ascon
run: git diff
- name: Test
working-directory: lwcrypto/ascon
run: go test ./...
ericlagergren-lwcrypto-grain:
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 ericlagergren/lwcrypto
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
with:
repository: ericlagergren/lwcrypto
ref: 0c42b05eddc34c58bf8e0cd4250c5cd2c256ea57
path: lwcrypto
persist-credentials: false
- name: Avo Module Replacement
working-directory: lwcrypto/grain/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: lwcrypto/grain/asm
run: |
go mod edit -require=github.com/ericlagergren/lwcrypto@v0.0.0-00010101000000-000000000000
go generate -v -x
- name: Diff
working-directory: lwcrypto/grain
run: git diff
- name: Test
working-directory: lwcrypto/grain
run: go test ./...
36 changes: 36 additions & 0 deletions tests/thirdparty/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -389,5 +389,41 @@
]
}
]
},
{
"repository": {
"owner": "ericlagergren",
"name": "lwcrypto"
},
"version": "0c42b05eddc34c58bf8e0cd4250c5cd2c256ea57",
"pkg": "ascon",
"module": "asm/go.mod",
"generate": [
{
"dir": "asm",
"commands": [
"go mod edit -require=github.com/ericlagergren/lwcrypto@v0.0.0-00010101000000-000000000000",
"go generate -v -x"
]
}
]
},
{
"repository": {
"owner": "ericlagergren",
"name": "lwcrypto"
},
"version": "0c42b05eddc34c58bf8e0cd4250c5cd2c256ea57",
"pkg": "grain",
"module": "asm/go.mod",
"generate": [
{
"dir": "asm",
"commands": [
"go mod edit -require=github.com/ericlagergren/lwcrypto@v0.0.0-00010101000000-000000000000",
"go generate -v -x"
]
}
]
}
]

0 comments on commit 2ca6e5e

Please sign in to comment.