In order to build Windows artifacts, we have added a separate target for the same in Makefile. We are using a cross-compiler to build Windows artifacts.
Additionally, we have added the same to Github action on PR.
To ensure that customers building their own plugins can build Windows artifacts for different architectures and using different cross-compilers, the build settings are customisable.
Please note that we have not modified the existing targets or added Windows target to build target. This is because in order to build Windows artifacts, we need to install cross-compiler which by default is not available on most runtimes. Therefore, adding a separate Windows target ensures backward-compatibility.
Testing
Installed the cross-compiler on an Ubuntu machine and then ran make windows-release
Then tested the built plugin with fluent-bit on Windows instance to ensure that the logs are received in Cloudwatch.
Issue #, if available:
Description of changes:
added a target for Windows release in makefile
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Summary
In order to build Windows artifacts, we have added a separate target for the same in Makefile. We are using a cross-compiler to build Windows artifacts.
Additionally, we have added the same to Github action on PR.
To ensure that customers building their own plugins can build Windows artifacts for different architectures and using different cross-compilers, the build settings are customisable.
Please note that we have not modified the existing targets or added Windows target to build target. This is because in order to build Windows artifacts, we need to install cross-compiler which by default is not available on most runtimes. Therefore, adding a separate Windows target ensures backward-compatibility.
Testing
Installed the cross-compiler on an Ubuntu machine and then ran make windows-release Then tested the built plugin with fluent-bit on Windows instance to ensure that the logs are received in Cloudwatch.
Issue #, if available:
Description of changes:
added a target for Windows release in makefile
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.