Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize cache plugins for Go compilation & image construction #3103

Open
richscott opened this issue Nov 14, 2023 · 2 comments
Open

Normalize cache plugins for Go compilation & image construction #3103

richscott opened this issue Nov 14, 2023 · 2 comments
Assignees
Labels
component/CI CI related changes

Comments

@richscott
Copy link
Member

richscott commented Nov 14, 2023

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 richscott mentioned this issue Nov 14, 2023
5 tasks
@Shreya111111
Copy link

@richscott I want to work on this issue

@Sharpz7 Sharpz7 added the component/CI CI related changes label Nov 27, 2023
@richscott
Copy link
Member Author

@Shreya111111 Sure - Pull Requests are always welcomed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/CI CI related changes
Projects
None yet
Development

No branches or pull requests

4 participants