Skip to content

Commit 280ffa6

Browse files
committed
update
1 parent f306555 commit 280ffa6

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
name: Go ${{ matrix.go }} in ${{ matrix.os }}
1414
steps:
1515
- uses: actions/checkout@v2
16-
with:
17-
path: ./src/github.com/${{ github.repository }}
16+
# with:
17+
# path: ./src/github.com/${{ github.repository }}
1818

1919
- uses: actions/setup-go@v2
20-
env:
21-
GOPATH: ${{ env.GITHUB_WORKSPACE }}
20+
# env:
21+
# GOPATH: ${{ env.GITHUB_WORKSPACE }}
2222
with:
2323
go-version: ${{ matrix.go }}
2424

@@ -35,24 +35,16 @@ jobs:
3535
golangci-lint --version
3636
3737
- name: Lint
38-
env:
39-
GOPATH: ${{ env.GITHUB_WORKSPACE }}
4038
run: make lint
4139

4240
- name: Format
43-
env:
44-
GOPATH: ${{ env.GITHUB_WORKSPACE }}
4541
run: |
4642
make format-check
4743
4844
- name: Test
49-
env:
50-
GOPATH: ${{ env.GITHUB_WORKSPACE }}
5145
run: make test
5246

5347
- name: Build
54-
env:
55-
GOPATH: ${{ env.GITHUB_WORKSPACE }}
5648
run: make build
5749

5850
- uses: actions/upload-artifact@v1

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ do
2929

3030
echo building ${os_arch}
3131

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
3333

3434
# if build success
3535
if [[ $? == 0 ]];then

0 commit comments

Comments
 (0)