A GitHub Action for building Go test binaries.
To use the GitHub Action, add the following to your job:
- uses: conventional-actions/go-build-test@v1
Name | Default | Description |
---|---|---|
package |
./cmd/* |
the package to build |
platforms |
native platform | comma-separated list of platforms to build |
tags |
N/A | comma-separated list of build tags to pass to go compiler |
No outputs.
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: conventional-actions/go-build@v1
with:
platforms: |
linux/amd64
linux/arm64
darwin/amd64
darwin/arm64
tags: production
The scripts and documentation in this project are released under the MIT License.