armada icon indicating copy to clipboard operation
armada copied to clipboard

Normalize cache plugins for Go compilation & image construction

Open richscott opened this issue 1 year ago • 3 comments

The test, lint, and release workflows use the magnetikonline/action-golang-cache plug-in, however, the buildworkflow uses the and actions/setup-go and actions/cache plug-ins - both could be replaced by using just magnetikonline/action-golang-cache.

  • Instead of specifying go-version: '1.20', it could use go-version-file: go.mod to have it automatically select the Go version from go.mod
  • build.yml uses actions/cache just for caching /home/runner/go/bin - we could also use it for $HOME/.cache/go-build and $HOME/go/pkg/mod - see https://github.com/actions/cache/blob/main/examples.md#go---modules

richscott avatar Nov 14 '23 00:11 richscott

@richscott I want to work on this issue

Shreya111111 avatar Nov 16 '23 22:11 Shreya111111

@Shreya111111 Sure - Pull Requests are always welcomed!

richscott avatar Jan 05 '24 17:01 richscott