github.com/emmansun/gmsm@v0.29.1/.github/workflows/test_sm_ni.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: sm3-sm4-ni-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          GODEBUG: x509sha1=1
    36          GOARCH: ${{ matrix.arch }}