mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 19:21:50 +00:00
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:
parent
a5c41aea5c
commit
4e85916a05
3
.github/workflows/sg-binary-release.yml
vendored
3
.github/workflows/sg-binary-release.yml
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user