open-nomad/.circleci/config/jobs/build-binaries.yml
Mahmood Ali 52af6e973b Refactor circleci CI scripts
This adopts pattern used by Vault, where we split CircleCI yaml config
into multiple files that get packed and translated to 2.0.

This has two motivations: First, to ease translating config to CircleCI
2.0 so it can run on Enterprise private repository.  Second and most
importantly, it also adding Enterprise specific jobs in separate files
with reduced config file merging conflict resolution.
2019-11-20 15:02:08 -05:00

18 lines
546 B
YAML

executor: go
environment:
# TODO: add ui tag here
GO_TAGS: "codegen_generated"
steps:
- checkout
- run: apt-get update; apt-get install -y sudo unzip zip
- run: make deps
- install-protoc
- run: sudo -E PATH="$GOPATH/bin:/usr/local/go/bin:$PATH" make generate-structs
- run: make pkg/windows_amd64.zip pkg/linux_amd64.zip
- store_artifacts:
path: pkg/windows_amd64.zip
destination: /builds/nomad_windows_amd64.zip
- store_artifacts:
path: pkg/linux_amd64.zip
destination: /builds/nomad_linux_amd64.zip