Support CGO for calling analysis from other languages

This commit is contained in:
Marc Campbell
2019-08-28 21:30:59 +00:00
parent 8125d5534b
commit 996a55bf90
6 changed files with 318 additions and 23 deletions

View File

@@ -4,6 +4,18 @@ release:
owner: replicatedhq
name: troubleshoot
builds:
- id: so
goos:
- linux
goarch:
- amd64
env:
- CGO_ENABLED=1
- GO111MODULE=on
main: ffi/main.go
flags: -buildmode=c-shared
binary: troubleshoot.so
hooks: {}
- id: collector
goos:
- linux
@@ -73,6 +85,10 @@ builds:
binary: manager
hooks: {}
archives:
- id: so
builds:
- so
format: tar.gz
- id: tar
format: tar.gz
name_template: '{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{.Arm }}{{ end }}-alpha'

View File

@@ -4,6 +4,18 @@ release:
owner: replicatedhq
name: troubleshoot
builds:
- id: so
goos:
- linux
goarch:
- amd64
env:
- CGO_ENABLED=1
- GO111MODULE=on
main: ffi/main.go
flags: -buildmode=c-shared
binary: troubleshoot.so
hooks: {}
- id: collector
goos:
- linux
@@ -73,6 +85,10 @@ builds:
binary: manager
hooks: {}
archives:
- id: so
builds:
- so
format: tar.gz
- id: preflight
builds:
- preflight