cloudflare / cloudflared

Cloudflare Tunnel client (formerly Argo Tunnel)
https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide
Apache License 2.0
8.85k stars 778 forks source link

RISC-V linux support? #621

Open xlmnxp opened 2 years ago

xlmnxp commented 2 years ago

Describe the feature you'd like I tried to install cloudflared to RISC-V board specific StarFive VisionFive and I'm using Lubunu (it support both Debian and Fedora) but I couldn't found the risc-v binaries

bobrik commented 2 years ago

Go is very good at cross-compiling, which means that you can make a binary on any host with Go installed:

GOOS=linux GOARCH=riscv64 go build -o /tmp/cloudflared ./cmd/cloudflared
$ file /tmp/cloudflared
/tmp/cloudflared: ELF 64-bit LSB executable, UCB RISC-V, double-float ABI, version 1 (SYSV), statically linked, Go BuildID=ZFw-Dky8XP4EEOTiHZAm/6XUI23C2GacA-JcFU3GG/ETtQgdXdaonlBGRYdDBi/1xjGcF4ukaFnTa-3svu-, not stripped