Skip to content

Commit b33a85c

Browse files
committed
update golang version in action runners and disable cgo
1 parent 06f2587 commit b33a85c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/v10-principal-multi-env.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ jobs:
6666
steps:
6767
- name: Check out code into the right branch
6868
uses: actions/checkout@v4
69+
70+
- name: Setup Go
71+
uses: actions/setup-go@v4
72+
with:
73+
go-version: '1.24.5'
6974

7075
- name: Login to GitHub Container Registry
7176
uses: docker/login-action@v3
@@ -81,7 +86,7 @@ jobs:
8186
8287
echo "Building Agent..."
8388
cd ${{ github.workspace }}/agent
84-
GOOS=linux GOARCH=amd64 go build -o utmstack_agent_service -v .
89+
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o utmstack_agent_service -v .
8590
GOOS=windows GOARCH=amd64 go build -o utmstack_agent_service.exe -v .
8691
GOOS=windows GOARCH=arm64 go build -o utmstack_agent_service_arm64.exe -v .
8792

0 commit comments

Comments
 (0)