github.com/emmansun/gmsm@v0.29.1/.github/workflows/test_ppc64.yaml (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: ppc64le-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.19.x]
    18          arch: [ppc64le]
    19          ppc64: [power8]
    20      runs-on: ubuntu-latest
    21      steps:
    22      - name: Set up Go
    23        uses: actions/setup-go@v5
    24        with:
    25          go-version: ${{ matrix.go-version }}
    26  
    27      - name: Set up QEMU
    28        uses: docker/setup-qemu-action@v3
    29  
    30      - name: Check out code
    31        uses: actions/checkout@v4
    32  
    33      - name: Test internal
    34        run: go test -v ./internal/...
    35        env:
    36          GOARCH: ${{ matrix.arch }}
    37          GOPPC64: ${{ matrix.ppc64 }}
    38  
    39      - name: Test bn256
    40        run: go test -v ./sm9/bn256/...
    41        env:
    42          GOARCH: ${{ matrix.arch }}
    43          GOPPC64: ${{ matrix.ppc64 }}
    44  
    45      - name: Test ZUC
    46        run: go test -v ./zuc/...
    47        env:
    48          GOARCH: ${{ matrix.arch }}
    49          GOPPC64: ${{ matrix.ppc64 }}
    50  
    51      - name: Test SM3
    52        run: go test -v ./sm3/...
    53        env:
    54          GOARCH: ${{ matrix.arch }}
    55          GOPPC64: ${{ matrix.ppc64 }}
    56  
    57      - name: Test SM4
    58        run: go test -v -short ./sm4/...
    59        env:
    60          GOARCH: ${{ matrix.arch }}
    61          GOPPC64: ${{ matrix.ppc64 }}
    62  
    63      - name: Test Cipher
    64        run: go test -v -short ./cipher/...
    65        env:
    66          GOARCH: ${{ matrix.arch }}
    67          GOPPC64: ${{ matrix.ppc64 }}