github.com/emmansun/gmsm@v0.29.1/.github/workflows/test_qemu.yml (about) 1 # This workflow will build a golang project 2 # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go 3 4 name: arm64-qemu 5 6 on: 7 push: 8 branches: [ "main" ] 9 pull_request: 10 branches: [ "main" ] 11 12 jobs: 13 14 test: 15 strategy: 16 matrix: 17 go-version: [1.18.x] 18 arch: [arm64] 19 runs-on: ubuntu-latest 20 steps: 21 - name: Set up Go 22 uses: actions/setup-go@v5 23 with: 24 go-version: ${{ matrix.go-version }} 25 26 - name: Set up QEMU 27 uses: docker/setup-qemu-action@v3 28 29 - name: Check out code 30 uses: actions/checkout@v4 31 32 - name: Test 33 run: go test -v -short ./... 34 env: 35 DISABLE_SM3NI: 1 36 DISABLE_SM4NI: 1 37 GODEBUG: x509sha1=1 38 GOARCH: ${{ matrix.arch }} 39 40 - name: Test Force SM4 Single Block with AES-NI 41 run: go test -v -short ./sm4/... 42 env: 43 DISABLE_SM4NI: 1 44 FORCE_SM4BLOCK_AESNI: 1 45 GOARCH: ${{ matrix.arch }}