File tree 1 file changed +33
-9
lines changed
1 file changed +33
-9
lines changed Original file line number Diff line number Diff line change @@ -87,14 +87,38 @@ jobs:
87
87
- attach_workspace :
88
88
at : /go/
89
89
- run :
90
- name : Build executables
91
- command : |
92
- go-bindata -o auto-docs/assets.go -prefix dist/ dist/...
93
- GOARCH=amd64 GOOS=linux go build -o build/auto-docs.${GOARCH}-${GOOS} ./auto-docs
94
- GOARCH=amd64 GOOS=darwin go build -o build/auto-docs.${GOARCH}-${GOOS} ./auto-docs
95
- GOARCH=amd64 GOOS=windows go build -o build/auto-docs.${GOARCH}-${GOOS}.exe ./auto-docs
96
- GOARCH=386 GOOS=linux go build -o build/auto-docs.${GOARCH}-${GOOS} ./auto-docs
97
- GOARCH=386 GOOS=windows go build -o build/auto-docs.${GOARCH}-${GOOS}.exe ./auto-docs
90
+ name : Prepare assets
91
+ command : go-bindata -o auto-docs/assets.go -prefix dist/ dist/...
92
+ - run :
93
+ name : Build amd64-linux
94
+ environment :
95
+ GOARCH : amd64
96
+ GOOS : linux
97
+ command : go build -o build/auto-docs.${GOARCH}-${GOOS} ./auto-docs
98
+ - run :
99
+ name : Build amd64-darwin
100
+ environment :
101
+ GOARCH : amd64
102
+ GOOS : darwin
103
+ command : go build -o build/auto-docs.${GOARCH}-${GOOS} ./auto-docs
104
+ - run :
105
+ name : Build amd64-windows
106
+ environment :
107
+ GOARCH : amd64
108
+ GOOS : windows
109
+ command : go build -o build/auto-docs.${GOARCH}-${GOOS}.exe ./auto-docs
110
+ - run :
111
+ name : Build 386-linux
112
+ environment :
113
+ GOARCH : ' 386'
114
+ GOOS : linux
115
+ command : go build -o build/auto-docs.${GOARCH}-${GOOS} ./auto-docs
116
+ - run :
117
+ name : Build 386-windows
118
+ environment :
119
+ GOARCH : ' 386'
120
+ GOOS : windows
121
+ command : go build -o build/auto-docs.${GOARCH}-${GOOS}.exe ./auto-docs
98
122
- run :
99
123
name : Push to github
100
124
command : |
@@ -110,9 +134,9 @@ jobs:
110
134
docker :
111
135
- image : circleci/buildpack-deps:stretch
112
136
steps :
113
- - setup_remote_docker
114
137
- attach_workspace :
115
138
at : /go/
139
+ - setup_remote_docker
116
140
- run :
117
141
name : Image Build
118
142
command : |
You can’t perform that action at this time.
0 commit comments