Skip to content

Commit

Permalink
Let's try the suggestion from actions/setup-go#12 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
gesellix committed Sep 19, 2019
1 parent 698b668 commit 8124c90
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,16 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: Setup gopath
run: |
export GOPATH=$HOME/go
export GOBIN=$(go env GOPATH)/bin
mkdir -p $GOPATH/pkg
mkdir -p $GOBIN
- name: Set GOPATH
# temporary fix
# see https://github.com/actions/setup-go/issues/14
run: |
echo "##[set-env name=GOPATH;]$(dirname $GITHUB_WORKSPACE)"
echo "##[add-path]$(dirname $GITHUB_WORKSPACE)/bin"
shell: bash

- name: Get dependencies
run: |
export GOPATH=$HOME/go
export GOBIN=$(go env GOPATH)/bin
export PATH=$PATH:$GOPATH
export PATH=$PATH:$GOBIN
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
Expand Down

0 comments on commit 8124c90

Please sign in to comment.