Category: Software, github, shell

By using a AWS CodeBuild batch build, we can run builds for a Go application targeted at multiple platforms concurrently. Cross-compiling Go binaries for different platforms is as simple as setting two environment variables $GOOS and $GOARCH, regardless of the build’s host platform.

This post demonstrates how to create a single AWS CodeBuild project by using a batch build and a single build spec to create concurrent builds for the six targeted platforms. Learn more about batch builds in AWS CodeBuild in the documentation: Batch builds in AWS CodeBuild

To avoid incurring future charges, delete the resources: This post utilized CodeBuild batch builds to build and package binaries for multiple platforms concurrently.

Related Articles