diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb59642..35dfc5e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,6 +40,11 @@ jobs: with: files: ./coverage1.txt,./coverage2.txt + - name: Test Force SM4 Single Block with AES-NI + run: go test -short sm4/... + env: + FORCE_SM4BLOCK_AESNI: 1 + - name: Test only if: ${{ matrix.goVer != '1.18' }} run: go test -short ./... diff --git a/.github/workflows/test_qemu.yml b/.github/workflows/test_qemu.yml index 65710ed..54f07ab 100644 --- a/.github/workflows/test_qemu.yml +++ b/.github/workflows/test_qemu.yml @@ -36,3 +36,9 @@ jobs: DISABLE_SM4NI: 1 GODEBUG: x509sha1=1 GOARCH: ${{ matrix.arch }} + + - name: Test Force SM4 Single Block with AES-NI + run: go test -v -short sm4/... + env: + DISABLE_SM4NI: 1 + FORCE_SM4BLOCK_AESNI: 1