Skip to content

Commit

Permalink
fix(taskfile): cleanup
Browse files Browse the repository at this point in the history
- remove deploy-binaries task, we no longer need to build all binaries
  with taskfile
- binaries for releases are build with GoReleaser in release workflow
- remove upx compression since it just adds additional time with minimal
  benefits

Signed-off-by: AtomicFS <vojtech_vesely@white-hat-hacker.icu>
  • Loading branch information
AtomicFS authored and AtomicFS committed Sep 11, 2024
1 parent 6074ee4 commit 8636a55
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,10 @@ tasks:
desc: Template task to build a go binary
dir: action
cmds:
- GOOS={{.OS}} GOARCH=amd64 go build -ldflags="-s -w" -o ../bin/firmware-action-{{.OS}}-amd64-{{.SEMVER}}
- upx -9 ../bin/firmware-action-{{.OS}}-amd64-{{.SEMVER}} || true
# upx works, but always fails on darwin:
# CantPackException: macOS is currently not supported (try --force-macos)
- go build -ldflags="-s -w" -o ../bin/firmware-action-{{.OS}}-amd64-{{.SEMVER}}
env:
CGO_ENABLED: 0

deploy-binaries:
desc: Compile action binaries
cmds:
- task: build-go-binary
vars: { OS: 'linux' } # yamllint disable-line
- task: build-go-binary
vars: { OS: 'darwin' } # yamllint disable-line
- task: build-go-binary
vars: { OS: 'windows' } # yamllint disable-line

lint:
desc: Run the linters
dir: action
Expand Down

0 comments on commit 8636a55

Please sign in to comment.