Skip to content

Commit

Permalink
workflows: disable cgo
Browse files Browse the repository at this point in the history
  • Loading branch information
cbarbian-sap committed Dec 10, 2024
1 parent f0bb9b9 commit afe94a0
Show file tree
Hide file tree
Showing 3 changed files with 3,695 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-clm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
LDFLAGS+=" -X \"github.com/sap/component-operator-runtime/internal/version.version=${{ github.event.release.tag_name }}\""
LDFLAGS+=" -X \"github.com/sap/component-operator-runtime/internal/version.gitCommit=${{ github.sha }}\""
LDFLAGS+=" -X \"github.com/sap/component-operator-runtime/internal/version.gitTreeState=clean\""
GOOS=$os GOARCH=$arch go build -o $file -ldflags "$LDFLAGS" ./clm
CGO_ENABLED=0 GOOS=$os GOARCH=$arch go build -o $file -ldflags "$LDFLAGS" ./clm
done
done
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-scaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
LDFLAGS+=" -X \"github.com/sap/component-operator-runtime/internal/version.version=${{ github.event.release.tag_name }}\""
LDFLAGS+=" -X \"github.com/sap/component-operator-runtime/internal/version.gitCommit=${{ github.sha }}\""
LDFLAGS+=" -X \"github.com/sap/component-operator-runtime/internal/version.gitTreeState=clean\""
GOOS=$os GOARCH=$arch go build -o $file -ldflags "$LDFLAGS" ./scaffold
CGO_ENABLED=0 GOOS=$os GOARCH=$arch go build -o $file -ldflags "$LDFLAGS" ./scaffold
done
done
Expand Down
Loading

0 comments on commit afe94a0

Please sign in to comment.