Skip to content

Action to help in populating buildinfo for Go.

License

Notifications You must be signed in to change notification settings

zaibon/go-buildinfo

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Repository files navigation

go-buildinfo

This is a sibling to https://github.com/daaku/buildinfo. When used along with that, it makes it easy to embed build information into a Go binary that is built using GitHub Actions.

First uses the action, the pass the BI_LDFLAGS env variable as your -ldflags argument to go build.

- uses: daaku/go-buildinfo@v1.0.2
- name: Build
  run: go build -trimpath -ldflags="$BI_LDFLAGS" ./...

Optionally set release_version for greater control. By default it will use the tag if present, or action run number.

About

Action to help in populating buildinfo for Go.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 70.2%
  • JavaScript 24.3%
  • Go 5.5%