added go generate
This commit is contained in:
parent
561b5be477
commit
14f8cbebb0
@ -14,6 +14,7 @@ steps:
|
|||||||
- name: build
|
- name: build
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
|
- go generate $SRCFILES
|
||||||
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
@ -36,6 +37,7 @@ steps:
|
|||||||
- name: build
|
- name: build
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
|
- go generate $SRCFILES
|
||||||
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
- go build -o $PROJECTNAME $GOOPTIONS $SRCFILES
|
||||||
- tar -czvf $PROJECTNAME-$GOOS-$GOARCH-$DRONE_TAG.tar.gz $PROJECTNAME
|
- tar -czvf $PROJECTNAME-$GOOS-$GOARCH-$DRONE_TAG.tar.gz $PROJECTNAME
|
||||||
- echo $PROJECTNAME $DRONE_TAG > VERSION
|
- echo $PROJECTNAME $DRONE_TAG > VERSION
|
||||||
|
Loading…
Reference in New Issue
Block a user