ci: fix Deploy Telemetry Server build (nested telemetry/server module) (#10398)

ci: build telemetry server from its own module in deploy workflow

telemetry/server has had its own go.mod since #9924, so building
./telemetry/server/main.go from the repo root fails with 'no required
module provides package'. Build from within the module instead.
This commit is contained in:
Chris Lu
2026-07-22 19:17:26 -07:00
committed by GitHub
parent 6832b76529
commit 5457c5b5ed
+5 -2
View File
@@ -26,14 +26,17 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
go-version-file: 'telemetry/server/go.mod'
- name: Build Telemetry Server
if: github.event_name == 'workflow_dispatch' && inputs.deploy
run: |
# telemetry/server is its own Go module; build from within it
cd telemetry/server
go mod tidy
echo "Building telemetry server..."
GOOS=linux GOARCH=amd64 go build -o telemetry-server ./telemetry/server/main.go
GOOS=linux GOARCH=amd64 go build -o ../../telemetry-server .
cd ../..
ls -la telemetry-server
echo "Build completed successfully"