agent: add separate glibc build with NVML support (#1618)

purego requires dynamic linking, so split the agent builds:
- Default: static binary without NVML (works on musl/alpine)
- Glibc: dynamic binary with NVML support via purego

Changes:
- Add glibc build tag to conditionally include NVML code
- Add beszel-agent-linux-amd64-glibc build/archive in goreleaser
- Update ghupdate to use glibc binary on glibc systems
- Switch nvidia dockerfile to golang:bookworm with -tags glibc
This commit is contained in:
henrygd
2026-01-12 15:38:13 -05:00
parent 6a1a98d73f
commit 3279a6ca53
8 changed files with 57 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
//go:build linux && amd64
//go:build glibc && linux && amd64
package agent