Skip to content

Commit

Permalink
Merge pull request #241 from nikodemas/update_gh_pipeline
Browse files Browse the repository at this point in the history
Make other executables static
  • Loading branch information
nikodemas authored Sep 14, 2023
2 parents 19f5556 + 7e03dd3 commit 8b0ff3f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-go-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ jobs:
mkdir cmsmon-tools
cd src/go/MONIT
CGO_ENABLED=0 go build -ldflags "-s -w -extldflags '-static'" -o monit monit.go
go build -o alert alert.go
go build -o annotationManager annotationManager.go
go build -o datasources datasources.go
go build -o es_exporter es_exporter.go
CGO_ENABLED=0 go build -ldflags "-s -w -extldflags '-static'" -o alert alert.go
CGO_ENABLED=0 go build -ldflags "-s -w -extldflags '-static'" -o annotationManager annotationManager.go
CGO_ENABLED=0 go build -ldflags "-s -w -extldflags '-static'" -o datasources datasources.go
CGO_ENABLED=0 go build -ldflags "-s -w -extldflags '-static'" -o es_exporter es_exporter.go
mv monit alert annotationManager datasources es_exporter ../../../cmsmon-tools
cd ../NATS
go build -o dbs_vm dbs_vm.go
go build -o nats-pub nats-pub.go
go build -o nats-sub nats-sub.go
CGO_ENABLED=0 go build -ldflags "-s -w -extldflags '-static'" -o dbs_vm dbs_vm.go
CGO_ENABLED=0 go build -ldflags "-s -w -extldflags '-static'" -o nats-pub nats-pub.go
CGO_ENABLED=0 go build -ldflags "-s -w -extldflags '-static'" -o nats-sub nats-sub.go
mv dbs_vm nats-pub nats-sub ../../../cmsmon-tools
cd ../../../
tar cfz cmsmon-tools.tar.gz cmsmon-tools
Expand Down

0 comments on commit 8b0ff3f

Please sign in to comment.