If you build your binaries in a pipeline you want them to be reproducible across platforms.
Build your program with
env GOOS=<system> GOARCH=<architecture> CGO_ENABLED=0 go build -trimpath main.go
Replace with your desired system. Replace with your desired architecture.
Options can be found here: https://go.dev/src/go/build/syslist.go