File tree Expand file tree Collapse file tree 2 files changed +5
-13
lines changed Expand file tree Collapse file tree 2 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ jobs:
13
13
name : Go ${{ matrix.go }} in ${{ matrix.os }}
14
14
steps :
15
15
- uses : actions/checkout@v2
16
- with :
17
- path : ./src/github.com/${{ github.repository }}
16
+ # with:
17
+ # path: ./src/github.com/${{ github.repository }}
18
18
19
19
- uses : actions/setup-go@v2
20
- env :
21
- GOPATH : ${{ env.GITHUB_WORKSPACE }}
20
+ # env:
21
+ # GOPATH: ${{ env.GITHUB_WORKSPACE }}
22
22
with :
23
23
go-version : ${{ matrix.go }}
24
24
@@ -35,24 +35,16 @@ jobs:
35
35
golangci-lint --version
36
36
37
37
- name : Lint
38
- env :
39
- GOPATH : ${{ env.GITHUB_WORKSPACE }}
40
38
run : make lint
41
39
42
40
- name : Format
43
- env :
44
- GOPATH : ${{ env.GITHUB_WORKSPACE }}
45
41
run : |
46
42
make format-check
47
43
48
44
- name : Test
49
- env :
50
- GOPATH : ${{ env.GITHUB_WORKSPACE }}
51
45
run : make test
52
46
53
47
- name : Build
54
- env :
55
- GOPATH : ${{ env.GITHUB_WORKSPACE }}
56
48
run : make build
57
49
58
50
- uses : actions/upload-artifact@v1
Original file line number Diff line number Diff line change 29
29
30
30
echo building ${os_arch}
31
31
32
- CGO_ENABLED=0 GOOS=${goos} GOARCH=${goarch} go build -mod=vendor -gcflags=-trimpath=$GOPATH -asmflags=-trimpath=$GOPATH -ldflags " -s -w" -o ./bin/${filename} main.go
32
+ CGO_ENABLED=0 GOOS=${goos} GOARCH=${goarch} go build -mod=vendor -gcflags=-trimpath=$GOPATH , $PWD -asmflags=-trimpath=$GOPATH , $PWD -ldflags " -s -w" -o ./bin/${filename} main.go
33
33
34
34
# if build success
35
35
if [[ $? == 0 ]]; then
You can’t perform that action at this time.
0 commit comments