tests/thirdparty: add cloudflare/circl (#264)
This commit is contained in:
committed by
GitHub
parent
3e9461adf1
commit
6a6b0bd11d
105
.github/workflows/packages.yml
vendored
105
.github/workflows/packages.yml
vendored
@@ -968,3 +968,108 @@ jobs:
|
||||
- name: Test
|
||||
working-directory: go
|
||||
run: env --unset=GOROOT ./bin/go test crypto/ed25519/...
|
||||
cloudflare-circl-sign-dilithium:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab # v3.0.0
|
||||
with:
|
||||
go-version: 1.18.x
|
||||
check-latest: true
|
||||
- name: Checkout avo
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
with:
|
||||
path: avo
|
||||
persist-credentials: false
|
||||
- name: Checkout cloudflare/circl
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
with:
|
||||
repository: cloudflare/circl
|
||||
ref: v1.1.0
|
||||
path: circl
|
||||
persist-credentials: false
|
||||
- name: Avo Module Replacement
|
||||
working-directory: circl/sign/dilithium/internal/common/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: circl/sign/dilithium/internal/common/asm
|
||||
run: go generate -v -x
|
||||
- name: Diff
|
||||
working-directory: circl/sign/dilithium
|
||||
run: git diff
|
||||
- name: Test
|
||||
working-directory: circl/sign/dilithium
|
||||
run: go test ./...
|
||||
cloudflare-circl-pke-kyber:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab # v3.0.0
|
||||
with:
|
||||
go-version: 1.18.x
|
||||
check-latest: true
|
||||
- name: Checkout avo
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
with:
|
||||
path: avo
|
||||
persist-credentials: false
|
||||
- name: Checkout cloudflare/circl
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
with:
|
||||
repository: cloudflare/circl
|
||||
ref: v1.1.0
|
||||
path: circl
|
||||
persist-credentials: false
|
||||
- name: Avo Module Replacement
|
||||
working-directory: circl/pke/kyber/internal/common/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: circl/pke/kyber/internal/common/asm
|
||||
run: go generate -v -x
|
||||
- name: Diff
|
||||
working-directory: circl/pke/kyber
|
||||
run: git diff
|
||||
- name: Test
|
||||
working-directory: circl/pke/kyber
|
||||
run: go test ./...
|
||||
cloudflare-circl-simd-keccakf1600:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab # v3.0.0
|
||||
with:
|
||||
go-version: 1.18.x
|
||||
check-latest: true
|
||||
- name: Checkout avo
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
with:
|
||||
path: avo
|
||||
persist-credentials: false
|
||||
- name: Checkout cloudflare/circl
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
with:
|
||||
repository: cloudflare/circl
|
||||
ref: v1.1.0
|
||||
path: circl
|
||||
persist-credentials: false
|
||||
- name: Avo Module Replacement
|
||||
working-directory: circl/simd/keccakf1600/internal/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: circl/simd/keccakf1600/internal/asm
|
||||
run: go generate -v -x
|
||||
- name: Diff
|
||||
working-directory: circl/simd/keccakf1600
|
||||
run: git diff
|
||||
- name: Test
|
||||
working-directory: circl/simd/keccakf1600
|
||||
run: go test ./...
|
||||
|
||||
Reference in New Issue
Block a user