diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..af4b9b1 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,44 @@ +name: Go + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + name: Build + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.x + uses: actions/setup-go@v2 + with: + go-version: ^1.14 + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Debug + run: | + pwd + echo ${HOME} + echo ${GITHUB_WORKSPACE} + echo ${GOPATH} + echo ${GOROOT} + env: + GOPATH: /home/runner/work/go + + - name: Build + run: | + mkdir -p $GOPATH/bin + echo 'export PATH=$PATH:$GOPATH/bin' > runme.sh + echo 'make tools all' >> runme.sh + chmod +x runme.sh + ./runme.sh + env: + GOPATH: /home/runner/work/go +