github.com/bytedance/sonic@v1.11.7-0.20240517092252-d2edb31b167b/scripts/go_latest.sh (about)

     1  #!/bin/bash
     2  TAG=$1
     3  
     4  git clone https://github.com/golang/go.git $TAG
     5  
     6  cd $TAG/src
     7  git checkout -b build/$TAG $TAG 
     8  
     9  ./all.bash
    10  
    11  cd ..
    12  export GOROOT=$PWD
    13  export PATH=$GOROOT/bin:$PATH
    14  go version
    15  
    16  cd ..
    17  GOMAXPROCS=4 go test -v -race .
    18  GOMAXPROCS=4 go test -v -race github.com/bytedance/sonic/ast
    19  GOMAXPROCS=4 go test -v -race github.com/bytedance/sonic/internal/encoder
    20  GOMAXPROCS=4 go test -v -race github.com/bytedance/sonic/internal/decoder