Skip to content
This repository was archived by the owner on Mar 19, 2023. It is now read-only.

Commit fdfa8ac

Browse files
add build
1 parent 981ccb5 commit fdfa8ac

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/go.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Go
1+
name: Build
22
on: [push]
33
jobs:
44

@@ -18,10 +18,19 @@ jobs:
1818

1919
- name: Get dependencies
2020
run: |
21+
export GOPATH=$HOME/go
22+
export GOBIN=$(go env GOPATH)/bin
23+
export PATH=$PATH:$GOPATH
24+
export PATH=$PATH:$GOBIN
25+
mkdir -p $GOPATH/pkg
26+
mkdir -p $GOBIN
27+
mkdir -p $GOPATH/src/github.com/$GITHUB_REPOSITORY
28+
mv ./* $GOPATH/src/github.com/$GITHUB_REPOSITORY
29+
cd $GOPATH/src/github.com/$GITHUB_REPOSITORY
2130
if [ -f Gopkg.toml ]; then
2231
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
2332
dep ensure
2433
fi
2534
2635
- name: Build
27-
run: go build -v .
36+
run: cd $HOME/go/src/github.com/$GITHUB_REPOSITORY && go build .

0 commit comments

Comments
 (0)