From 5619f15529fcd6c5b6a874e7c4515791dbebc585 Mon Sep 17 00:00:00 2001 From: AtomicFS Date: Wed, 27 Nov 2024 10:58:56 +0100 Subject: [PATCH] fix(taskfile): tweaks Signed-off-by: AtomicFS --- Taskfile.yml | 4 ++++ tests/Taskfile.yml | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Taskfile.yml b/Taskfile.yml index 3ba896bb..49beb8ad 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -22,6 +22,10 @@ tasks: - go build -ldflags="-s -w" -o ../bin/firmware-action-{{OS}}-{{ARCH}}-{{.SEMVER}} env: CGO_ENABLED: 0 + sources: + - ./**/*.go + generates: + - ../bin/firmware-action-{{OS}}-{{ARCH}}-{{.SEMVER}} lint: desc: Run the linters diff --git a/tests/Taskfile.yml b/tests/Taskfile.yml index b632dc18..2d478241 100644 --- a/tests/Taskfile.yml +++ b/tests/Taskfile.yml @@ -4,6 +4,14 @@ vars: WORKDIR: '.example_runs' tasks: + mkdir: + desc: Make working directory for examples + internal: true + cmds: + - mkdir -p '{{.WORKDIR}}' + status: + - test -d '{{.WORKDIR}}' + #======= # LINUX #======= @@ -45,11 +53,12 @@ tasks: linux-*: desc: Run example deps: + - task: mkdir - task: :build-go-binary vars: VARIANT: '{{index .MATCH 0}}' cmds: - - mkdir -p '{{.WORKDIR}}' + - trash '{{.WORKDIR}}/output-linux' - task: linux-fetch vars: LINUX_VERSION: '{{.VARIANT}}'