Skip to content

Commit 7a03048

Browse files
authored
Merge pull request #10 from cdsl-research/support-go-mod-ci
support go-mod and unsupport dep
2 parents 478cf29 + e358e02 commit 7a03048

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

.github/workflows/goreleaser.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
common:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-20.04
1212
steps:
1313
- name: Create Release
1414
id: create_release
@@ -37,9 +37,9 @@ jobs:
3737
specific:
3838
env:
3939
GOPATH: ${{ github.workspace }}/go
40-
GO111MODULE: off
40+
GO111MODULE: on
4141
needs: common
42-
runs-on: ubuntu-latest
42+
runs-on: ubuntu-20.04
4343
strategy:
4444
matrix:
4545
os: [mac64, lin64, win64]
@@ -67,20 +67,14 @@ jobs:
6767
6868
- name: Checkout Code
6969
uses: actions/checkout@v2
70-
with:
71-
path: go/src/nickns
7270

7371
- name: Setup Go
7472
uses: actions/setup-go@v1
7573
with:
76-
go-version: '1.13'
77-
78-
- name: Install Dep
79-
run: go get -u -v github.com/golang/dep/cmd/dep
74+
go-version: '1.17'
8075

81-
- name: Install Packages
82-
run: $GOPATH/bin/dep ensure
83-
working-directory: go/src/nickns
76+
- name: Install modules
77+
run: go mod vendor
8478

8579
- name: Build
8680
env:
@@ -90,7 +84,6 @@ jobs:
9084
mkdir dist
9185
GOOS=$goos GOARCH=$goarch go build -v -o dist/app .
9286
zip -j -r ${{ github.workspace }}/release dist
93-
working-directory: go/src/nickns
9487
9588
- name: Upload release asset
9689
uses: actions/upload-release-asset@v1

0 commit comments

Comments
 (0)