github.com/jasonkeene/cli@v6.14.1-0.20160816203908-ca5715166dfb+incompatible/ci/cli/tasks/build-osx-binary.yml (about) 1 --- 2 platform: darwin 3 image: docker:///cloudfoundry/cli-ci 4 5 inputs: 6 - name: cli 7 path: gopath/src/github.com/cloudfoundry/cli 8 9 outputs: 10 - name: osx-compiled 11 12 run: 13 path: bash 14 args: 15 - -c 16 - | 17 set -ex 18 19 cwd=$PWD 20 21 export GOPATH=$PWD/gopath 22 export PATH=$GOPATH/bin:$PATH 23 24 go version 25 26 pushd $GOPATH/src/github.com/cloudfoundry/cli 27 bin/replace-sha 28 29 echo "Building 64-bit Darwin" 30 GOARCH=amd64 GOOS=darwin go build -o out/cf-cli_osx . 31 32 echo "Creating tarball" 33 tar -cvzf $cwd/osx-compiled/cf-cli-osx-binary.tgz -C out . 34 popd