File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8989 with :
9090 version : 3.x
9191
92+ - name : Create bin directory
93+ run : mkdir -p $HOME/bin
94+
9295 - name : Build
9396 run : task build
9497
Original file line number Diff line number Diff line change 2323 desc : Build the application binary
2424 cmds :
2525 - go build -ldflags "{{.LDFLAGS}}" -o {{.BUILD_DIR}}/{{.BINARY_NAME}} {{.MAIN_PKG}}
26+ - ln -sf {{.USER_WORKING_DIR}}/{{.BUILD_DIR}}/{{.BINARY_NAME}} {{.HOME}}/bin/{{.BINARY_NAME}}
2627 sources :
2728 - " {{.GO_SOURCES}}"
2829 - " **/*.template"
@@ -32,10 +33,6 @@ tasks:
3233 generates :
3334 - " {{.BUILD_DIR}}/{{.BINARY_NAME}}"
3435
35- link :
36- desc : Creates a symlink to ~/bin
37- cmd : ln -sf {{.USER_WORKING_DIR}}/{{.BUILD_DIR}}/{{.BINARY_NAME}} {{.HOME}}/bin/{{.BINARY_NAME}}
38-
3936 lint :
4037 desc : Run golangci-lint
4138 cmd : golangci-lint run
You can’t perform that action at this time.
0 commit comments