From 23fc189f2f96873a934f239fffc1d6f83c53f0b3 Mon Sep 17 00:00:00 2001 From: per1234 Date: Wed, 4 Jun 2025 16:56:42 -0700 Subject: [PATCH] Add project build task This task will make it easy for contributors to build the project, using the convenience `build` task that it is standard practice to include in all applicable Arduino tooling projects. --- Taskfile.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Taskfile.yml b/Taskfile.yml index 7af3e19..64bb14f 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -39,6 +39,11 @@ vars: ) tasks: + build: + desc: Build the project + deps: + - task: go:build + # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-workflows-task/Taskfile.yml ci:validate: desc: Validate GitHub Actions workflows against their JSON schema @@ -155,6 +160,16 @@ tasks: run: when_changed # No preparation is needed for Go module-based projects. + # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/go-task/Taskfile.yml + go:build: + desc: Build the Go code + dir: "{{.DEFAULT_GO_MODULE_PATH}}" + cmds: + - | + go build \ + -v \ + {{.LDFLAGS}} + # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-task/Taskfile.yml go:fix: desc: |