ci: add build-binaries job for artifact storage (#6741)

This commit is contained in:
Tim Gross 2019-11-20 14:45:20 -05:00 committed by GitHub
parent 4c7452bdab
commit 11e0403173
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,7 @@ workflows:
jobs:
- lint-go:
<<: *IGNORE_FOR_UI_BRANCHES
- build-binaries
- test-machine:
name: "test-client"
test_packages: "./client/..."
@ -115,6 +116,27 @@ jobs:
- run: make check
- run: make checkscripts
build-binaries:
executor: go
environment:
<<: *COMMON_ENVS
GOPATH: /go
# 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.tar.gz
destination: /builds/nomad_linux_amd64.tar.gz
test-container:
executor: go
parameters: