Git Product home page Git Product logo

binaries's Introduction

binaries

A home for scripts that build pants static binaries.

workflow

The general workflow for publishing new binaries is:

  1. Create a script that will build the binary tool as reproducibly as possible, and place it in a relevant directory under build-support. For example, for thrift 0.10.0 for osx, you'd create the script at build-support/bin/thrift/mac/10.13/0.10.0/build.sh.
  2. Symlink the script directory into all other relevant versions for both platforms. For OSX, this will generally include "all modern OSX versions": ie, build-support/bin/thrift/mac/{10.13,10.12,10.11,10.10,etc}.
  3. Get the script and links reviewed. During review, the reviewer should confirm that the script successfully produces a binary on their machine(s).
  4. The script should then be merged without the produced binaries.
  5. After merging, the reviewer should (re-)execute the script (if necessary), confirm that binaries have been created in all relevant symlinked directories, and then run:
    ./sync-s3.sh
    

...to upload the produced binaries to s3.

building

linux

Requires docker

  1. Change directories to the root of this repository.
docker run -v "$(pwd):/pantsbuild-binaries" --rm -it --entrypoint /bin/bash pantsbuild/centos6:latest && cd /pantsbuild-binaries

...to pop yourself in a controlled image back at this repo's root 2. Run the build-*.sh script corresponding to the binary you wish to build 3. Manually move the binary from the build tree to its home in build-support/...

osx

We have no controlled build environment solution like we do for linux, so you'll need to get your hands on an OSX machine. With that in hand:

  1. Run the build-*.sh script corresponding to the binary you wish to build
  2. manually move the binary from the build tree to its home in build-support/...

binaries's People

Contributors

jsirois avatar kwlzn avatar illicitonion avatar unrememberme avatar wisechengyi avatar jasonqsong avatar michaelttran avatar benjyw avatar cosmicexplorer avatar ericzundel avatar mateor avatar tejal29 avatar nsaechao avatar

Watchers

Travis Crawford avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.