Files
actions/go-build
Ismo Vuorinen 5ab6f03264 refactor(go): remove redundant caching from Go actions
Remove redundant common-cache usage in Go actions since setup-go with
cache:true already provides comprehensive caching.

Changes:
- go-build: Removed duplicate common-cache step (setup-go caches
  ~/go/pkg/mod and ~/.cache/go-build automatically)
- go-lint: Removed redundant ~/.cache/go-build from cache paths
  (kept ~/.cache/golangci-lint as it's linter-specific and not
  covered by setup-go)

Performance improvements:
- Eliminates duplicate caching operations
- Reduces action initialization overhead
- setup-go's native caching is more efficient and maintained

setup-go with cache:true caches:
- ~/go/pkg/mod (Go modules)
- ~/.cache/go-build (Go build cache)
2025-11-20 11:23:53 +02:00
..

ivuorinen/actions/go-build

Go Build

Description

Builds the Go project.

Inputs

name description required default
go-version

Go version to use.

false ""
destination

Build destination directory.

false ./bin
max-retries

Maximum number of retry attempts for go mod download operations

false 3
token

GitHub token for authentication

false ""

Outputs

name description
build_status

Build completion status (success/failure)

test_status

Test execution status (success/failure/skipped)

go_version

Version of Go used

binary_path

Path to built binaries

coverage_path

Path to coverage report

Runs

This action is a composite action.

Usage

- uses: ivuorinen/actions/go-build@main
  with:
    go-version:
    # Go version to use.
    #
    # Required: false
    # Default: ""

    destination:
    # Build destination directory.
    #
    # Required: false
    # Default: ./bin

    max-retries:
    # Maximum number of retry attempts for go mod download operations
    #
    # Required: false
    # Default: 3

    token:
    # GitHub token for authentication
    #
    # Required: false
    # Default: ""