Skip to content

Commit

Permalink
fix(taskfile): tweaks
Browse files Browse the repository at this point in the history
Signed-off-by: AtomicFS <[email protected]>
  • Loading branch information
AtomicFS committed Nov 27, 2024
1 parent 190b283 commit 5619f15
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 10 additions & 1 deletion tests/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
#=======
Expand Down Expand Up @@ -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}}'
Expand Down

0 comments on commit 5619f15

Please sign in to comment.