Skip to content

Commit

Permalink
Rebase, incorporate cache cleaning option
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFriel committed Jun 7, 2023
1 parent 86d6789 commit 1cb869d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ builds:
- darwin
- windows
- linux
#{{- if .Config.cleanCacheBetweenBuilds }}#
hooks:
post:
- env GOOS={{ .Os }} GOARCH={{ .Arch }} go clean -cache
- env GOOS={{ .Os }} GOARCH={{ .Arch }} go clean -modcache
#{{- end }}#
#{{- if .Config.skipWindowsArmBuild }}#
ignore:
- goarch: arm64
Expand Down
6 changes: 6 additions & 0 deletions package-ci/pkg/templates/bridged-provider/.goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ builds:
- darwin
- windows
- linux
#{{- if .Config.cleanCacheBetweenBuilds }}#
hooks:
post:
- env GOOS={{ .Os }} GOARCH={{ .Arch }} go clean -cache
- env GOOS={{ .Os }} GOARCH={{ .Arch }} go clean -modcache
#{{- end }}#
#{{- if .Config.skipWindowsArmBuild }}#
ignore:
- goarch: arm64
Expand Down

0 comments on commit 1cb869d

Please sign in to comment.