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

     1  name: Compatibility Test Windows-X64
     2  
     3  on: pull_request
     4  
     5  jobs:
     6    build:
     7      strategy:
     8        matrix:
     9          go-version: [1.17.x, 1.22.x]
    10      runs-on: windows-latest
    11      steps:
    12        - uses: actions/checkout@v2
    13  
    14        - name: Set up Go
    15          uses: actions/setup-go@v2
    16          with:
    17            go-version: ${{ matrix.go-version }}
    18  
    19        - uses: actions/cache@v2
    20          with:
    21            path: ~/go/pkg/mod
    22            key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
    23            restore-keys: |
    24              ${{ runner.os }}-go-
    25  
    26        - name: main
    27          run: |
    28            set GOMAXPROCS=4
    29            go test -v -race github.com/bytedance/sonic
    30  
    31        - name: ast
    32          run: |
    33            set GOMAXPROCS=4
    34            go test -v -race github.com/bytedance/sonic/ast
    35  
    36        - name: external
    37          run: |
    38            cd ./external_jsonlib_test
    39            set GOMAXPROCS=4
    40            go test -v -race ./...