github.com/jingcheng-WU/gonum@v0.9.1-0.20210323123734-f1a2a11a8f7b/.github/workflows/script.d/check-generate.sh (about) 1 #!/bin/bash 2 3 # Reset the tree to the current commit to handle 4 # any writes during the build. 5 git reset --hard 6 7 go generate github.com/jingcheng-WU/gonum/blas 8 go generate github.com/jingcheng-WU/gonum/blas/gonum 9 go generate github.com/jingcheng-WU/gonum/unit 10 go generate github.com/jingcheng-WU/gonum/unit/constant 11 go generate github.com/jingcheng-WU/gonum/graph/formats/dot 12 go generate github.com/jingcheng-WU/gonum/graph/formats/rdf 13 go generate github.com/jingcheng-WU/gonum/stat/card 14 15 if [ -n "$(git diff)" ]; then 16 git diff 17 exit 1 18 fi 19 20 rm -rf * 21 git reset --hard