Problem:
- CGO builds failing in CI with "cannot find sqlite3.h"
- go-release-cgo.yaml workflow looks for workflow-prepare.sh to install deps
- Script was missing, causing build failures
Solution:
- Created workflow-prepare.sh to install SQLite development headers
- Platform-specific installation:
- Linux (Ubuntu/Debian): libsqlite3-dev via apt-get
- Linux (RHEL/CentOS): sqlite-devel via yum
- Linux (Alpine): sqlite-dev via apk
- macOS: sqlite3 via Homebrew (if needed)
- Windows: Downloads SQLite amalgamation, sets CGO_CFLAGS/CGO_LDFLAGS
- Includes verification step to confirm SQLite availability
This script is automatically called by the shared GitHub Actions workflow
before running GoReleaser builds with CGO_ENABLED=1.