Lines Matching +full:build +full:- +full:and +full:- +full:deploy
1 # Build scripts that publish pre-compiled protoc artifacts
3 for the messages and/or RPC services from ``.proto`` files.
6 build and publish a ``protoc`` executable (a.k.a. artifact) to Maven
7 repositories. The artifact can be used by build automation tools so that users
8 would not need to compile and install ``protoc`` for their systems.
14 * [build-protoc.sh](build-protoc.sh): script to cross-build the protoc for your
17 * [build-zip.sh](build-zip.sh): script to package published maven artifacts in
31 ``protoc-<version>-<os>-<arch>.exe``, e.g., ``protoc-3.6.1-linux-x86_64.exe``.
39 The scripts only work under Unix-like environments, e.g., Linux, MacOSX, and
41 for how to set up the build environment.
43 ## Building from a freshly checked-out source
55 ### Build the artifact for each platform
57 Run the build-protoc.sh script under this protoc-artifacts directory to build the protoc
61 $ cd protoc-artifacts
62 $ ./build-protoc.sh linux x86_64 protoc
66 protoc-artifacts directory.
68 For a list of supported platforms, see the comments in the build-protoc.sh
69 script. We only use this script to build artifacts on Ubuntu and MacOS (both
70 with x86_64, and do cross-compilation for other platforms.
73 We build on Centos 6.9 to provide a good compatibility for not very new
74 systems. We have provided a ``Dockerfile`` under this directory to build the
77 To build a image:
80 $ docker build -t protoc-artifacts .
86 $ docker run -it --rm=true protoc-artifacts bash
93 $ wget -O - https://github.com/protocolbuffers/protobuf/archive/v3.5.1.tar.gz | tar xvzp
96 ### Windows build
97 We no longer use scripts in this directory to build windows artifacts. Instead,
98 we use Visual Studio 2015 to build our windows release artifacts. See our
99 [kokoro windows build scripts here](../kokoro/release/protoc/windows/build.bat).
101 To upload windows artifacts, copy the built binaries into this directory and
103 artifacts for other platforms. That will allow the maven script to find and
108 read [this page](http://central.sonatype.org/pages/apache-maven.html) on how to
109 configure GPG and Sonatype account.
112 every supported platform and put them under the target directory. Example
139 You will need to build the artifacts on multiple machines and gather them
142 Use the following command to deploy artifacts for the host platform to a
146 $ mvn deploy -P release
150 https://oss.sonatype.org/#stagingRepositories and find the repository, usually
151 in the name like ``comgoogle-123``. Verify that the staging repository has all
152 the binaries, close and release this repository.
155 ## Tested build environments
157 - Linux x86_32 and x86_64:
158 - Centos 6.9 (within Docker 1.6.1)
159 - Ubuntu 14.04.5 64-bit
160 - Linux aarch_64: Cross compiled with `g++-aarch64-linux-gnu` on Ubuntu 14.04.5 64-bit
161 - Mac OS X x86_32 and x86_64: Mac OS X 10.9.5