target / strelka

Real-time, container-based file scanning at enterprise scale
Other
878 stars 113 forks source link

Add multi-platform Go build script for Strelka executables #378

Closed phutelmyer closed 1 year ago

phutelmyer commented 1 year ago

Describe the change This change introduces a new shell script for building Go binaries for multiple platforms directly from the root of the Strelka directory. The script simplifies the build process by iterating over each permutation of GOOS (operating system), GOARCH (architecture), and executable name. This script does not introduce new dependencies.

Describe testing procedures To test the script, navigate to the root of the Strelka directory, and execute the script using the command bash build-go-binaries.sh. The script should build each of the specified Go binaries and output them to the root directory. Please ensure that you have Go installed before running the script.

Sample output Running the script does not modify Strelka's output. However, it will generate the following executable files in the root of the Strelka directory:

The purpose of this is either to build / test executables easily or for use in submitting to new releases.

As this is an infrequent process, this will not be added as a Github Action on new releases but will instead be executed / uploaded manually.

Checklist