dmwm / dasgoclient

Data Aggregation System (DAS) Go client
https://cmsweb.cern.ch/das/
MIT License
9 stars 4 forks source link

Add binary build for RiscV64 architecture #39

Closed smuzaffar closed 3 months ago

smuzaffar commented 3 months ago

Fixes #38 This adds support for riscv64 architecture

> make build_riscv64
sed -i -e "s,{{VERSION}},v02.04.52,g" main.go
go clean; rm -rf pkg dasgoclient_riscv64; GOARCH=riscv64 GOOS=linux CGO_ENABLED=0 go build -ldflags="-s -w -extldflags -static"
go: downloading github.com/dmwm/das2go v0.0.0-20240109131541-fd40de8cee75
go: downloading github.com/buger/jsonparser v1.1.1
go: downloading github.com/pkg/profile v1.7.0
go: downloading github.com/felixge/fgprof v0.9.3
go: downloading gopkg.in/mgo.v2 v2.0.0-20190816093944-a6b53ec6cb22
go: downloading github.com/vkuznet/dcr v0.0.0-20220305122652-f04b8bee787b
go: downloading github.com/vkuznet/x509proxy v0.0.0-20210801171832-e47b94db99b6
go: downloading github.com/google/pprof v0.0.0-20211214055906-6f57359322fd
sed -i -e "s,v02.04.52,{{VERSION}},g" main.go
mv dasgoclient dasgoclient_riscv64
> ls
agg.go  BUILD.md  dasgoclient_riscv64  go.mod  go.sum  LICENSE  main.go  main_test.go  Makefile  README.md
> file dasgoclient_riscv64 
dasgoclient_riscv64: ELF 64-bit LSB executable, UCB RISC-V, version 1 (SYSV), statically linked, stripped
smuzaffar commented 3 months ago

@vkuznet , can you please review this? This should allow us to use dasgoclient on new riscv64 arch

vkuznet commented 3 months ago

Thank you for providing new arch support platform, I'm merging now.

smuzaffar commented 3 months ago

thanks a lot @vkuznet . Can you please tag it so that github can built it?

vkuznet commented 3 months ago

Shahzad, here is new release https://github.com/dmwm/dasgoclient/releases/tag/v02.04.52 which contains new architecture.

smuzaffar commented 3 months ago

thanks @vkuznet, I have open cmsdist PR to integrate it