github.com/goshafaq/sonic@v0.0.0-20231026082336-871835fb94c6/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/goshafaq/sonic/ast
    19  GOMAXPROCS=4 go test -v -race github.com/goshafaq/sonic/internal/encoder
    20  GOMAXPROCS=4 go test -v -race github.com/goshafaq/sonic/internal/decoder