Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
bbbe422f
Commit
bbbe422f
authored
Jul 16, 2018
by
Feng Xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add protoc release script for Linux build.
parent
07d69d04
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
2 deletions
+39
-2
build.sh
kokoro/release/protoc/linux/build.sh
+30
-0
release.cfg
kokoro/release/protoc/linux/release.cfg
+7
-0
build-protoc.sh
protoc-artifacts/build-protoc.sh
+2
-2
No files found.
kokoro/release/protoc/linux/build.sh
0 → 100755
View file @
bbbe422f
#!/bin/bash
set
-x
# Change to repo root.
cd
$(
dirname
$0
)
/../../../..
# Use docker image to build linux artifacts.
DOCKER_IMAGE_NAME
=
protobuf/protoc_
$(
sha1sum
protoc-artifacts/Dockerfile |
cut
-f1
-d
" "
)
docker pull
$DOCKER_IMAGE_NAME
docker run
-v
$(
pwd
)
:/var/local/protobuf
--rm
$DOCKER_IMAGE_NAME
\
bash
-l
/var/local/protobuf/protoc-artifacts/build-protoc.sh
\
linux x86_64 protoc
||
{
echo
"Failed to build protoc for linux + x86_64."
exit
1
}
docker run
-v
$(
pwd
)
:/var/local/protobuf
--rm
$DOCKER_IMAGE_NAME
\
bash
-l
/var/local/protobuf/protoc-artifacts/build-protoc.sh
\
linux x86_32 protoc
||
{
echo
"Failed to build protoc for linux + x86_32."
exit
1
}
# Cross-build for some architectures.
sudo
apt
install
g++-aarch64-linux-gnu
# TODO(xiaofeng): It currently fails with "machine `aarch64' not recognized"
# error.
# protoc-artifacts/build-protoc.sh linux aarch_64 protoc
kokoro/release/protoc/linux/release.cfg
0 → 100644
View file @
bbbe422f
build_file: "protobuf/kokoro/release/protoc/linux/build.sh"
action {
define_artifacts {
regex: "**/protoc.exe"
}
}
protoc-artifacts/build-protoc.sh
View file @
bbbe422f
...
...
@@ -38,7 +38,7 @@ case $MAKE_TARGET in
protoc
)
;;
*
)
echo
"Target ""
$TARGET
"" invalid."
echo
"Target ""
$
MAKE_
TARGET
"" invalid."
exit
1
esac
...
...
@@ -165,7 +165,7 @@ checkDependencies ()
}
############################################################################
echo
"Building protoc, OS=
$OS
ARCH=
$ARCH
TARGET=
$TARGET
"
echo
"Building protoc, OS=
$OS
ARCH=
$ARCH
TARGET=
$
MAKE_
TARGET
"
CONFIGURE_ARGS
=
"--disable-shared"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment