...

Text file src/github.com/bytedance/sonic/.github/workflows/compatibility_test.yml

Documentation: github.com/bytedance/sonic/.github/workflows

     1name: Compatibility Test Linux-X64|ARM
     2
     3on: pull_request
     4
     5jobs:
     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

View as plain text