github.com/vugu/vugu@v0.3.6-0.20240430171613-3f6f402e014b/tinygo-dev/test2.sh (about)

     1  #!/bin/bash
     2  
     3  set -e
     4  
     5  # copy to src dir
     6  mkdir -p src/github.com/vugu/vugu
     7  rsync -taz --exclude=tinygo-dev --exclude=.git ../ src/github.com/vugu/vugu/
     8  
     9  # env and dependencies
    10  export GOPATH=`pwd`
    11  export GO111MODULE=off
    12  go get github.com/vugu/vjson
    13  go get github.com/vugu/xxhash
    14  
    15  # compile
    16  TG=~/go/bin/tinygo
    17  $TG build -o testpgm2.wasm -target wasm ./