File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
common :
11
- runs-on : ubuntu-latest
11
+ runs-on : ubuntu-20.04
12
12
steps :
13
13
- name : Create Release
14
14
id : create_release
37
37
specific :
38
38
env :
39
39
GOPATH : ${{ github.workspace }}/go
40
- GO111MODULE : off
40
+ GO111MODULE : on
41
41
needs : common
42
- runs-on : ubuntu-latest
42
+ runs-on : ubuntu-20.04
43
43
strategy :
44
44
matrix :
45
45
os : [mac64, lin64, win64]
@@ -67,20 +67,14 @@ jobs:
67
67
68
68
- name : Checkout Code
69
69
uses : actions/checkout@v2
70
- with :
71
- path : go/src/nickns
72
70
73
71
- name : Setup Go
74
72
uses : actions/setup-go@v1
75
73
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'
80
75
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
84
78
85
79
- name : Build
86
80
env :
90
84
mkdir dist
91
85
GOOS=$goos GOARCH=$goarch go build -v -o dist/app .
92
86
zip -j -r ${{ github.workspace }}/release dist
93
- working-directory : go/src/nickns
94
87
95
88
- name : Upload release asset
96
89
uses : actions/upload-release-asset@v1
You can’t perform that action at this time.
0 commit comments