Skip to content

Commit 8d9159a

Browse files
markchandlera-maurice
markchandler
authored andcommitted
Firebase cpp: Created kokoro job config to build tools used for firebase releases
PiperOrigin-RevId: 280513681
1 parent b4d3b14 commit 8d9159a

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed

build_tools/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Build Tools
2+
3+
This directory contains build configuration files used by kokoro to build
4+
tooling needed for firebase releases.

build_tools/release.cfg

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Location of the bash script to run.
4+
build_file: "google3/firebase/app/client/cpp/build_tools/release.sh"
5+
6+
gfile: "/x20/teams/firebase/build_tools/binutils-latest.tar.gz"
7+
8+
action {
9+
define_artifacts {
10+
regex: "install-output/*"
11+
strip_prefix: "install-output/"
12+
}
13+
}

build_tools/release.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash
2+
#
3+
# Copyright 2019 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# Builds build tools used in building Firebase Cpp Sdk
18+
19+
# Fail on any error.
20+
set -e
21+
# Display commands being run.
22+
set -x
23+
24+
# Install binutils deps
25+
sudo apt-get install -y texinfo bison flex
26+
27+
# Extract latest binutil source from x20
28+
tar -xzf "${KOKORO_ARTIFACTS_DIR}/gfile/binutils-*.tar.gz" -C "${KOKORO_ARTIFACTS_DIR}/binutils"
29+
30+
cd "${KOKORO_ARTIFACTS_DIR}/binutils"
31+
./configure --enable-targets=all --prefix="${KOKORO_ARTIFACTS_DIR}/install-output"
32+
make -j 8 all-binutils
33+
make install

0 commit comments

Comments
 (0)