|
| 1 | +# Build Matrix for Terraform Registry |
| 2 | + |
| 3 | +This document outlines the OS and architecture combinations that are built for the Pocket-ID Terraform provider. |
| 4 | + |
| 5 | +## Terraform Registry Requirements |
| 6 | + |
| 7 | +According to [Terraform Registry documentation](https://developer.hashicorp.com/terraform/registry/providers/os-arch), providers should build for the following platforms: |
| 8 | + |
| 9 | +### Required Platforms ✅ |
| 10 | + |
| 11 | +- ✅ **Darwin (macOS) / AMD64** - Intel Macs |
| 12 | +- ✅ **Darwin (macOS) / ARM64** - Apple Silicon Macs (M1/M2/M3) |
| 13 | +- ✅ **Linux / AMD64** - Standard Linux x86_64 (required for HCP Terraform) |
| 14 | +- ✅ **Linux / ARM64** - Linux on ARM64/AArch64 |
| 15 | +- ✅ **Linux / ARMv6** - Linux on ARM v6 (Raspberry Pi, etc.) |
| 16 | +- ✅ **Windows / AMD64** - Windows 64-bit |
| 17 | + |
| 18 | +### Recommended Platforms ✅ |
| 19 | + |
| 20 | +- ✅ **Linux / 386** - Linux 32-bit |
| 21 | +- ✅ **Windows / 386** - Windows 32-bit |
| 22 | +- ✅ **FreeBSD / 386** - FreeBSD 32-bit |
| 23 | +- ✅ **FreeBSD / AMD64** - FreeBSD 64-bit |
| 24 | + |
| 25 | +## Current Build Configuration |
| 26 | + |
| 27 | +Based on `.goreleaser.yml`, the following platforms are built: |
| 28 | + |
| 29 | +### Darwin (macOS) |
| 30 | + |
| 31 | +- `darwin/amd64` - Intel Macs |
| 32 | +- `darwin/arm64` - Apple Silicon Macs |
| 33 | + |
| 34 | +### Linux |
| 35 | + |
| 36 | +- `linux/386` - 32-bit |
| 37 | +- `linux/amd64` - 64-bit (CGO disabled for HCP Terraform compatibility) |
| 38 | +- `linux/arm64` - ARM64/AArch64 |
| 39 | +- `linux/arm/6` - ARMv6 (Raspberry Pi Zero, Pi 1) |
| 40 | +- `linux/arm/7` - ARMv7 (Raspberry Pi 2+) |
| 41 | + |
| 42 | +### Windows |
| 43 | + |
| 44 | +- `windows/386` - 32-bit |
| 45 | +- `windows/amd64` - 64-bit |
| 46 | + |
| 47 | +### FreeBSD |
| 48 | + |
| 49 | +- `freebsd/386` - 32-bit |
| 50 | +- `freebsd/amd64` - 64-bit |
| 51 | + |
| 52 | +## Build Settings |
| 53 | + |
| 54 | +All binaries are built with: |
| 55 | + |
| 56 | +- **CGO_ENABLED=0** - Static binaries with no external dependencies |
| 57 | +- **-trimpath** flag - Reproducible builds |
| 58 | +- **Proper versioning** - Version, commit, and date embedded in binaries |
| 59 | + |
| 60 | +This configuration ensures compatibility with Terraform Registry requirements and HCP Terraform. |
0 commit comments