From 3dbbc480c25cffd99918b90c2f5ffde9c08e1ac9 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Wed, 8 May 2019 15:47:46 -0700 Subject: [PATCH] add build for generating binaries --- .circleci/config.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 26436c432..2cb4a4300 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -46,6 +46,21 @@ jobs: <<: *golang environment: GOOS: openbsd + generate_binaries: + <<: *golang + steps: + - checkout + - run: + name: Create windows, linux, and mac zipped binaries. + command: | + XC_ARCH=amd64 XC_OS="linux windows darwin" GOLDFLAGS="-s -w" ./scripts/build.sh; + mkdir ./pkg/zipped_packers + zip ./pkg/zipped_packers/packer_darwin.zip pkg/darwin_amd64/packer; + zip ./pkg/zipped_packers/packer_windows.zip pkg/windows_amd64/packer + zip ./pkg/zipped_packers/packer_linux.zip pkg/linux_amd64/packer + - store_artifacts: + path: ./pkg/zipped_packers + workflows: version: 2 build_and_check_vendor_vs_module: