add Windows binaries (.exe files) compilation, to support of the Aiven terraform plugin on Windows
@@ -32,6 +32,8 @@ plugins:
bins: vendor plugins
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 packr2 build -mod=vendor -ldflags "-X main.version=${version}" -o plugins/linux_amd64/terraform-provider-aiven_$(short_version) .
GOOS=darwin GOARCH=amd64 packr2 build -mod=vendor -ldflags "-X main.version=${version}" -o plugins/darwin_amd64/terraform-provider-aiven_$(short_version) .
+ GOOS=windows GOARCH=amd64 packr2 build -mod=vendor -ldflags "-X main.version=${version}" -o plugins/windows_amd64/terraform-provider-aiven_$(short_version).exe .
+ GOOS=windows GOARCH=386 packr2 build -mod=vendor -ldflags "-X main.version=${version}" -o plugins/windows_386/terraform-provider-aiven_$(short_version).exe .
#################################################
# Artifacts for release
@@ -39,7 +41,11 @@ bins: vendor plugins
.PHONY: release
release: bins
- tar cvzf terraform-provider-aiven.tar.gz -C plugins linux_amd64/terraform-provider-aiven_$(short_version) darwin_amd64/terraform-provider-aiven_$(short_version)
+ tar cvzf terraform-provider-aiven.tar.gz -C plugins \
+ linux_amd64/terraform-provider-aiven_$(short_version) \
+ darwin_amd64/terraform-provider-aiven_$(short_version) \
+ windows_amd64/terraform-provider-aiven_$(short_version).exe \
+ windows_386/terraform-provider-aiven_$(short_version).exe
#################################################
# Testing and linting
