GOOS=linux GOARCH=amd64 go build && scp executable user@host:direc/tory/
I have a Taskfile for local compilation and running (macOS) and when I need to release I can just say `task publish` and it'll cross-compile a Linux binary and copy it to my server.
But honestly running poetry install for python is not bad either.