github.com/bytedance/sonic@v1.11.7-0.20240517092252-d2edb31b167b/.github/workflows/compatibility_test.yml (about)

     1  name: Compatibility Test Linux-X64|ARM
     2  
     3  on: pull_request
     4  
     5  jobs:
     6    build:
     7      strategy:
     8        matrix:
     9          go-version: [1.15.x, 1.16.x, 1.17.x, 1.18.x, 1.19.x, 1.20.x, 1.21.x, 1.22.x]
    10          os: [arm, X64]
    11      runs-on: ${{ matrix.os }}
    12      steps:
    13        - name: Clear repository
    14          run: sudo rm -fr $GITHUB_WORKSPACE && mkdir $GITHUB_WORKSPACE
    15  
    16        - uses: actions/checkout@v2
    17  
    18        - name: Set up Go
    19          uses: actions/setup-go@v2
    20          with:
    21            go-version: ${{ matrix.go-version }}
    22  
    23        - uses: actions/cache@v2
    24          with:
    25            path: ~/go/pkg/mod
    26            key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
    27            restore-keys: |
    28              ${{ runner.os }}-go-
    29  
    30        - name: main
    31          run: GOMAXPROCS=4 go test -v -gcflags="all=-l" -race github.com/bytedance/sonic
    32  
    33        - name: ast
    34          run: GOMAXPROCS=4 go test -v -gcflags="all=-l" -race github.com/bytedance/sonic/ast
    35        
    36        - name: qemu
    37          run: sh scripts/qemu.sh