File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 39
39
)
40
40
41
41
tasks :
42
+ build :
43
+ desc : Build the project
44
+ deps :
45
+ - task : go:build
46
+
42
47
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-workflows-task/Taskfile.yml
43
48
ci:validate :
44
49
desc : Validate GitHub Actions workflows against their JSON schema
@@ -155,6 +160,16 @@ tasks:
155
160
run : when_changed
156
161
# No preparation is needed for Go module-based projects.
157
162
163
+ # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/go-task/Taskfile.yml
164
+ go:build :
165
+ desc : Build the Go code
166
+ dir : " {{.DEFAULT_GO_MODULE_PATH}}"
167
+ cmds :
168
+ - |
169
+ go build \
170
+ -v \
171
+ {{.LDFLAGS}}
172
+
158
173
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-task/Taskfile.yml
159
174
go:fix :
160
175
desc : |
You can’t perform that action at this time.
0 commit comments