Skip to content

Commit

Permalink
Merge pull request #75 from laverya/reenable-darwin-windows-builds
Browse files Browse the repository at this point in the history
build darwin and windows binaries without cgo
  • Loading branch information
laverya authored Oct 1, 2019
2 parents f6d8ae1 + 714f432 commit 2150463
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 9 deletions.
15 changes: 14 additions & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
steps:
- label: build
commands:
- make kots ffi ci-test
- make ci-test
plugins:
- docker#v3.2.0:
image: replicated/gitops-builder:buildkite-go12-node10
always-pull: true
mount-checkout: true
workdir: /go/src/github.com/replicatedhq/kots


- label: snapshot-release
commands:
- make snapshot-release
plugins:
- docker#v3.2.0:
always-pull: true
image: replicated/gitops-builder:buildkite-go12-node10
workdir: /go/src/github.com/replicatedhq/kots
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "/var/lib/buildkite-agent/.docker/config.json:/home/builder/.docker/config.json"

- wait

- label: release
Expand Down
22 changes: 18 additions & 4 deletions deploy/.goreleaser.snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@ release:
owner: replicatedhq
name: kots
builds:
- id: kots
- id: kots-linux
goos:
- linux
# - windows
# - darwin
goarch:
- amd64
# - "386"
env:
- CGO_ENABLED=1
- GO111MODULE=on
Expand All @@ -23,6 +20,23 @@ builds:
flags: -tags netgo -tags containers_image_ostree_stub -tags exclude_graphdriver_devicemapper -tags exclude_graphdriver_btrfs -tags containers_image_openpgp -installsuffix netgo
binary: kots
hooks: {}
- id: kots
goos:
- windows
- darwin
goarch:
- amd64
env:
- CGO_ENABLED=0
- GO111MODULE=on
main: cmd/kots/main.go
ldflags: -s -w
-X github.com/replicatedhq/kots/pkg/version.version={{.Version}}
-X github.com/replicatedhq/kots/pkg/version.gitSHA={{.FullCommit}}
-X github.com/replicatedhq/kots/pkg/version.buildTime={{.Date}}
flags: -tags netgo -tags containers_image_ostree_stub -tags exclude_graphdriver_devicemapper -tags exclude_graphdriver_btrfs -tags containers_image_openpgp -installsuffix netgo
binary: kots
hooks: {}
- id: so
goos:
- linux
Expand Down
23 changes: 19 additions & 4 deletions deploy/.goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@ release:
owner: replicatedhq
name: kots
builds:
- id: kots
- id: kots-linux
goos:
- linux
# - windows
# - darwin
goarch:
- amd64
# - "386"
env:
- CGO_ENABLED=1
- GO111MODULE=on
Expand All @@ -23,6 +20,23 @@ builds:
flags: -tags netgo -tags containers_image_ostree_stub -tags exclude_graphdriver_devicemapper -tags exclude_graphdriver_btrfs -tags containers_image_openpgp -installsuffix netgo
binary: kots
hooks: {}
- id: kots
goos:
- windows
- darwin
goarch:
- amd64
env:
- CGO_ENABLED=0
- GO111MODULE=on
main: cmd/kots/main.go
ldflags: -s -w
-X github.com/replicatedhq/kots/pkg/version.version={{.Version}}
-X github.com/replicatedhq/kots/pkg/version.gitSHA={{.FullCommit}}
-X github.com/replicatedhq/kots/pkg/version.buildTime={{.Date}}
flags: -tags netgo -tags containers_image_ostree_stub -tags exclude_graphdriver_devicemapper -tags exclude_graphdriver_btrfs -tags containers_image_openpgp -installsuffix netgo
binary: kots
hooks: {}
- id: so
goos:
- linux
Expand All @@ -44,6 +58,7 @@ archives:
- id: kots
builds:
- kots
- kots-linux
format: tar.gz
format_overrides:
- goos: windows
Expand Down

0 comments on commit 2150463

Please sign in to comment.