github.com/gopherd/gonum@v0.0.4/.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 gonum.org/v1/gonum/blas
     8  go generate gonum.org/v1/gonum/blas/gonum
     9  go generate gonum.org/v1/gonum/unit
    10  go generate gonum.org/v1/gonum/unit/constant
    11  go generate gonum.org/v1/gonum/graph/formats/dot
    12  go generate gonum.org/v1/gonum/graph/formats/rdf
    13  go generate gonum.org/v1/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