Skip to content

Commit afe94a0

Browse files
committed
workflows: disable cgo
1 parent f0bb9b9 commit afe94a0

File tree

3 files changed

+3695
-2
lines changed

3 files changed

+3695
-2
lines changed

.github/workflows/publish-clm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
LDFLAGS+=" -X \"github.com/sap/component-operator-runtime/internal/version.version=${{ github.event.release.tag_name }}\""
3333
LDFLAGS+=" -X \"github.com/sap/component-operator-runtime/internal/version.gitCommit=${{ github.sha }}\""
3434
LDFLAGS+=" -X \"github.com/sap/component-operator-runtime/internal/version.gitTreeState=clean\""
35-
GOOS=$os GOARCH=$arch go build -o $file -ldflags "$LDFLAGS" ./clm
35+
CGO_ENABLED=0 GOOS=$os GOARCH=$arch go build -o $file -ldflags "$LDFLAGS" ./clm
3636
done
3737
done
3838

.github/workflows/publish-scaffold.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
LDFLAGS+=" -X \"github.com/sap/component-operator-runtime/internal/version.version=${{ github.event.release.tag_name }}\""
3333
LDFLAGS+=" -X \"github.com/sap/component-operator-runtime/internal/version.gitCommit=${{ github.sha }}\""
3434
LDFLAGS+=" -X \"github.com/sap/component-operator-runtime/internal/version.gitTreeState=clean\""
35-
GOOS=$os GOARCH=$arch go build -o $file -ldflags "$LDFLAGS" ./scaffold
35+
CGO_ENABLED=0 GOOS=$os GOARCH=$arch go build -o $file -ldflags "$LDFLAGS" ./scaffold
3636
done
3737
done
3838

0 commit comments

Comments
 (0)