sg: do not release with CGO enabled (#50530)

This should fix the issues with the glibc. 

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

CI
This commit is contained in:
Jean-Hadrien Chabran 2023-04-11 15:22:14 +02:00 committed by GitHub
parent a5c41aea5c
commit 4e85916a05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,15 +103,12 @@ jobs:
if: startsWith(matrix.os, 'macos-') == true
run: |
cd dev/sg
export CGO_ENABLED=1
export SDKROOT=$(xcrun --sdk macosx --show-sdk-path)
GOARCH=${{ matrix.arch }} go build -o "sg_$(go env GOOS)_${{ matrix.arch }}" -trimpath -ldflags "-s -w -X main.BuildCommit=$(git rev-list -1 HEAD .)" .
- name: Build and upload Linux
if: startsWith(matrix.os, 'ubuntu-') == true
run: |
cd dev/sg
export CGO_ENABLED=1
GOARCH=${{ matrix.arch }} go build -o "sg_$(go env GOOS)_${{ matrix.arch }}" -trimpath -ldflags "-s -w -X main.BuildCommit=$(git rev-list -1 HEAD .)" .
- name: Upload release asset