bromite-buildtools/.github/workflows/build_bromite_dev.yaml

437 lines
18 KiB
YAML
Raw Normal View History

name: Build Bromite
2021-07-11 12:55:43 +02:00
permissions:
actions: none
checks: none
contents: none
deployments: none
issues: none
packages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none
on:
workflow_dispatch:
2021-07-31 15:25:15 +02:00
inputs:
sha:
description: 'uazo/bromite SHA'
required: true
default: '76745fde6ed75542f005ea5528f486df41c56da4'
build:
2022-01-17 10:52:22 +01:00
description: 'arch [arm64/x64]'
required: true
default: 'x64'
type:
2022-01-17 10:52:22 +01:00
description: 'runner? [dev/ci]'
required: true
default: 'dev'
debug:
2022-01-17 10:52:22 +01:00
description: 'debug? [true/false]'
required: true
default: 'true'
2021-09-15 12:17:07 +02:00
usegoma:
2022-01-17 10:52:22 +01:00
description: 'Use goma? [true/false]'
2021-09-15 12:17:07 +02:00
required: true
default: 'false'
2021-07-31 15:25:15 +02:00
2021-07-11 15:12:14 +02:00
env:
2021-07-31 15:25:15 +02:00
BROMITE_SHA: ${{ github.event.inputs.sha }}
2021-09-15 16:04:08 +02:00
USEGOMA: ${{ github.event.inputs.usegoma }}
2021-07-27 22:02:57 +02:00
REMOVEDOCKERSUPPORT: true
2021-07-30 09:30:54 +02:00
USELOCALIMAGE: true
2021-08-04 20:08:37 +02:00
GOMAJOBS: 60
2021-07-11 15:12:14 +02:00
2021-07-11 12:55:43 +02:00
jobs:
check_images:
runs-on: ${{ github.event.inputs.type }}
2021-07-11 12:55:43 +02:00
steps:
2021-07-11 15:16:50 +02:00
- name: Checkout repo
uses: actions/checkout@v2
with:
2021-07-11 15:21:44 +02:00
path: bromite-buildtools
2021-07-11 15:16:50 +02:00
fetch-depth: 1
2021-07-29 15:07:10 +02:00
2021-07-31 10:49:09 +02:00
- name: Enable proxy on container
2021-07-29 15:07:10 +02:00
shell: bash
run: |
if ! [[ -z "${HTTP_PROXY}" ]]; then
2021-09-23 09:22:15 +02:00
PROXY_ADDR=http://$(hostname -I | cut -d' ' -f1 | xargs):8118
2021-07-29 17:57:57 +02:00
echo "PROXY_ADDR=$PROXY_ADDR" >> $GITHUB_ENV
2021-07-31 10:49:09 +02:00
sudo iptables -D INPUT -p tcp -s localhost --dport 8118 -j ACCEPT
sudo iptables -D INPUT -p tcp --dport 8118 -j DROP
2021-07-29 15:07:10 +02:00
fi
2021-07-11 12:55:43 +02:00
- name: Get current chromium version
shell: bash
run: |
mkdir bromite
cd bromite
2021-07-11 13:56:27 +02:00
git init
2021-07-11 14:00:02 +02:00
git remote add origin https://github.com/uazo/bromite
2021-07-11 15:12:14 +02:00
git fetch origin $BROMITE_SHA
2021-07-11 14:00:02 +02:00
git reset --hard FETCH_HEAD
2021-07-11 12:55:43 +02:00
cd ..
export VERSION=$( cat ./bromite/build/RELEASE )
2021-07-11 15:12:14 +02:00
rm -rf bromite
2021-07-11 12:55:43 +02:00
echo Current version is $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
2021-07-11 15:19:19 +02:00
cd bromite-buildtools
2022-02-03 21:44:09 +01:00
- name: Building build-deps container ${{ env.VERSION }}
2021-07-11 15:12:14 +02:00
shell: bash
run: |
IS_PRESENT=$(docker inspect --type=image uazo/build-deps:$VERSION > /dev/null ; echo $?)
if [ $IS_PRESENT -ne "0" ]; then
IS_PRESENT=$(docker manifest inspect uazo/build-deps:$VERSION > /dev/null ; echo $?)
if [ $IS_PRESENT -ne "0" ]; then
2021-07-11 15:24:44 +02:00
DOCKER_BUILDKIT=1 docker build -t uazo/build-deps:$VERSION \
--progress plain \
--build-arg VERSION=$VERSION \
2021-07-29 15:07:10 +02:00
--build-arg HTTP_PROXY="$PROXY_ADDR" \
2021-07-12 09:21:47 +02:00
--no-cache \
2021-07-11 15:24:44 +02:00
bromite-buildtools/images/build-deps/.
2021-07-11 15:12:14 +02:00
fi
fi
2021-07-11 12:55:43 +02:00
2022-02-03 21:44:09 +01:00
- name: Building chromium container ${{ env.VERSION }}
2021-07-11 15:12:14 +02:00
shell: bash
run: |
IS_PRESENT=$(docker inspect --type=image uazo/chromium:$VERSION > /dev/null ; echo $?)
if [ $IS_PRESENT -ne "0" ]; then
IS_PRESENT=$(docker manifest inspect uazo/chromium:$VERSION > /dev/null ; echo $?)
if [ $IS_PRESENT -ne "0" ]; then
2021-07-11 15:24:44 +02:00
DOCKER_BUILDKIT=1 docker build -t uazo/chromium:$VERSION \
--progress plain \
--build-arg VERSION=$VERSION \
2021-07-29 15:07:10 +02:00
--build-arg HTTP_PROXY="$PROXY_ADDR" \
2021-07-11 15:24:44 +02:00
bromite-buildtools/images/chr-source/.
2021-07-11 15:12:14 +02:00
fi
fi
2021-07-11 12:55:43 +02:00
2022-02-03 21:44:09 +01:00
- name: Building bromite container ${{ env.BROMITE_SHA }}
2021-07-11 15:12:14 +02:00
shell: bash
run: |
IS_PRESENT=$(docker inspect --type=image uazo/bromite:$BROMITE_SHA > /dev/null ; echo $?)
if [ $IS_PRESENT -ne "0" ]; then
IS_PRESENT=$(docker manifest inspect uazo/bromite:$BROMITE_SHA > /dev/null ; echo $?)
if [ $IS_PRESENT -ne "0" ]; then
DOCKER_BUILDKIT=1 docker build -t uazo/bromite:$BROMITE_SHA --progress plain \
--build-arg BROMITE_SHA=$BROMITE_SHA \
--build-arg VERSION=$VERSION \
2021-07-29 15:07:10 +02:00
--build-arg HTTP_PROXY="$PROXY_ADDR" \
2021-07-11 15:12:14 +02:00
bromite-buildtools/images/bromite-source/.
fi
fi
2022-02-03 21:44:09 +01:00
- name: Building bromite-build container ${{ env.BROMITE_SHA }}
2021-07-11 15:12:14 +02:00
shell: bash
run: |
IS_PRESENT=$(docker inspect --type=image uazo/bromite-build:$BROMITE_SHA > /dev/null ; echo $?)
if [ $IS_PRESENT -ne "0" ]; then
IS_PRESENT=$(docker manifest inspect uazo/bromite-build:$BROMITE_SHA > /dev/null ; echo $?)
if [ $IS_PRESENT -ne "0" ]; then
DOCKER_BUILDKIT=1 docker build -t uazo/bromite-build:$BROMITE_SHA --progress plain \
--build-arg BROMITE_SHA=$BROMITE_SHA \
2021-07-29 15:07:10 +02:00
--build-arg HTTP_PROXY="$PROXY_ADDR" \
2021-07-12 20:43:47 +02:00
--no-cache \
2021-07-11 15:12:14 +02:00
bromite-buildtools/images/bromite-build/.
fi
fi
2021-07-31 11:11:13 +02:00
- name: Mark image to build
shell: bash
run: |
IS_PRESENT=$(docker inspect --type=image uazo/bromite-build:build > /dev/null ; echo $?)
2021-07-31 11:14:16 +02:00
if [ $IS_PRESENT -eq "0" ]; then
2021-07-31 11:11:13 +02:00
docker rmi uazo/bromite-build:build
fi
docker tag uazo/bromite-build:$BROMITE_SHA uazo/bromite-build:build
2021-07-11 12:55:43 +02:00
build:
runs-on: ${{ github.event.inputs.type }}
2021-07-11 12:55:43 +02:00
needs: check_images
if: success()
2021-08-09 14:33:59 +02:00
timeout-minutes: 720
2021-07-11 12:55:43 +02:00
2021-08-01 19:05:27 +02:00
services:
2021-07-11 12:55:43 +02:00
gomaserver:
image: uazo/goma-server
volumes:
- /tmp/proxy:/tmp/proxy
2021-08-01 19:05:27 +02:00
- /redis:/var/lib/redis
2021-07-30 11:48:20 +02:00
options: >-
--health-cmd "hostname -I >/tmp/proxy/gomaserverip"
2021-07-30 12:06:31 +02:00
--health-interval 30s
2021-07-30 11:48:20 +02:00
--health-timeout 5s
--health-retries 5
2021-07-30 12:06:31 +02:00
2021-07-11 12:55:43 +02:00
env:
2021-07-30 09:38:27 +02:00
REMOVEDOCKERSUPPORT: true
USELOCALIMAGE: true
2021-07-11 12:55:43 +02:00
container:
2021-07-31 11:11:13 +02:00
image: uazo/bromite-build:build
2021-07-11 12:55:43 +02:00
env:
SERVER_HOST_GOMA: gomaserver
2021-07-31 09:15:55 +02:00
REMOVEDOCKERSUPPORT: true # CUSTOM RUNNER: remove sharing of docker socket
USELOCALIMAGE: true # CUSTOM RUNNER: permit use of local images
USEINTERNALNETWORK: true # CUSTOM RUNNER: create the docker network as internal
2021-08-04 10:14:46 +02:00
WORKSPACE: /home/lg/working_dir
2021-12-01 09:21:16 +01:00
KYTHE_CORPUS: chromium.googlesource.com/chromium/src
KYTHE_ROOT_DIRECTORY: /home/lg/working_dir/chromium/src
KYTHE_OUTPUT_DIRECTORY: /home/lg/working_dir/chromium/src/out/bromite/kythe
2021-09-16 17:00:49 +02:00
# compile in debug mode
2022-01-17 18:07:46 +01:00
TARGET_ISDEBUG: ${{ github.event.inputs.debug }}
TARGET_CPU: ${{ github.event.inputs.build }}
2021-07-11 12:55:43 +02:00
volumes:
- /storage/images/${{ github.event.inputs.build }}/${{ github.event.inputs.sha }}:/home/lg/working_dir/chromium/src/out/bromite
2021-08-04 09:55:01 +02:00
- /tmp/proxy:/tmp/proxy
2021-07-30 09:53:16 +02:00
steps:
- name: Prepare Build Container
2021-07-11 12:55:43 +02:00
shell: bash
run: |
# set workspace paths
PATH=$WORKSPACE/chromium/src/third_party/llvm-build/Release+Asserts/bin:$WORKSPACE/depot_tools/:/usr/local/go/bin:$WORKSPACE/mtool/bin:$PATH
2021-07-30 11:48:20 +02:00
cd $WORKSPACE
2021-08-04 15:12:57 +02:00
# reset proxy env
HTTP_PROXY=
HTTPS_PROXY=
http_proxy=
https_proxy=
2021-07-31 15:13:23 +02:00
2021-08-01 19:05:27 +02:00
# update hosts
#sudo echo "$(cat /tmp/proxy/gomaserverip | xargs) gomaserver" >/etc/hosts
#sudo echo "$(cat /tmp/proxy/redisip | xargs) redis" >/etc/hosts
2021-07-31 15:13:23 +02:00
# set goma options
2021-07-31 11:11:13 +02:00
export SERVER_HOST_GOMA=$(cat /tmp/proxy/gomaserverip | xargs)
2021-07-31 15:13:23 +02:00
export GOMA_SERVER_HOST=$SERVER_HOST_GOMA
export GOMA_SERVER_PORT=5050
export GOMA_USE_SSL=false
export GOMA_HTTP_AUTHORIZATION_FILE=$WORKSPACE/.debug_auth_file
export GOMA_HERMETIC=error
export GOMA_USE_LOCAL=false
export GOMA_FALLBACK=true
export GOMA_ARBITRARY_TOOLCHAIN_SUPPORT=true
export GOMA_MAX_SUBPROCS_LOW=0
2021-09-15 17:15:08 +02:00
2021-12-04 20:11:49 +01:00
# set out folder permissions
test -d chromium/src/out/bromite || sudo mkdir -p chromium/src/out/bromite && \
sudo chown lg chromium/src/out &&
sudo chown lg chromium/src/out/bromite &&
2021-12-01 09:21:16 +01:00
# make kythe output directory
2021-12-04 20:11:49 +01:00
test -d $KYTHE_OUTPUT_DIRECTORY || mkdir -p $KYTHE_OUTPUT_DIRECTORY
2021-11-30 15:32:54 +01:00
2021-09-15 17:15:08 +02:00
sudo mkdir -p /run/user/1000/
sudo chown lg /run/user/1000/
sudo chmod g-rxw /run/user/1000/
sudo chmod o-rxw /run/user/1000/
2021-07-31 15:13:23 +02:00
# start goma client
2021-09-15 16:04:08 +02:00
[[ "$USEGOMA" = "true" ]] && \
2021-09-15 12:17:07 +02:00
echo "::group::-------- start goma client" && \
$WORKSPACE/goma/goma_ctl.py ensure_stop && \
$WORKSPACE/goma/goma_ctl.py ensure_start && \
echo "::endgroup::" \
|| true
2021-07-30 11:48:20 +02:00
2021-07-31 15:13:23 +02:00
cd chromium/src
OUT_PRESENT=0
2021-12-01 08:46:09 +01:00
test -f out/bromite/prepare_gn && OUT_PRESENT=1
2021-07-31 15:13:23 +02:00
if [[ OUT_PRESENT -eq 0 ]]; then
echo "::group::-------- gn gen"
2021-09-15 16:04:08 +02:00
[[ "$USEGOMA" = "true" ]] && \
2022-02-22 10:04:33 +01:00
gn gen --args="import(\"/home/lg/working_dir/bromite/build/bromite.gn_args\") use_goma=true goma_dir=\"$WORKSPACE/goma\" $(cat ../../build_args.gni) " out/bromite \
2021-09-15 12:17:07 +02:00
|| \
2022-02-22 10:04:33 +01:00
gn gen --args="import(\"/home/lg/working_dir/bromite/build/bromite.gn_args\") $(cat ../../build_args.gni) " out/bromite
2021-07-31 15:13:23 +02:00
echo "::endgroup::"
echo "::group::-------- gn args"
gn args out/bromite/ --list --short
2021-12-01 08:46:09 +01:00
gn args out/bromite/ --list >out/bromite/gn_list
2021-07-31 15:13:23 +02:00
echo "::endgroup::"
echo "::group::-------- apply .mtool"
test -f out/bromite/.mtool && \
cp out/bromite/.mtool .mtool && \
$WORKSPACE/mtool/chromium/mtime.sh --restore
echo "::endgroup::"
2021-12-01 08:46:09 +01:00
echo "OK" >out/bromite/prepare_gn
2021-07-31 15:13:23 +02:00
fi
2022-01-17 16:56:10 +01:00
cp ../../bromite/build/RELEASE out/bromite
2021-07-31 15:13:23 +02:00
if [[ -z "${GOMAJOBS}" ]]; then
GOMAJOBS=40
fi
2021-09-15 12:22:31 +02:00
echo "::group::-------- pre-cache toolchain"
2021-09-15 16:04:08 +02:00
[[ "$USEGOMA" = "true" ]] && \
2021-09-15 12:17:07 +02:00
sudo ../../casupload --cas-server=unix:/tmp/proxy/bots.sock --instance=default_instance \
third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include \
third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/include \
third_party/llvm-build/Release+Asserts/lib \
third_party/llvm-build/Release+Asserts/bin \
buildtools/third_party/libc++ \
2021-09-15 12:22:31 +02:00
chrome/android/profiles/afdo.prof \
2021-09-15 12:17:07 +02:00
|| true
2021-09-15 12:22:31 +02:00
echo "::endgroup::"
2021-07-31 15:13:23 +02:00
- name: Build Bromite
shell: bash
run: |
2021-08-04 10:14:46 +02:00
PATH=$WORKSPACE/chromium/src/third_party/llvm-build/Release+Asserts/bin:$WORKSPACE/depot_tools/:/usr/local/go/bin:$WORKSPACE/mtool/bin:$PATH
cd $WORKSPACE/chromium/src
2021-09-15 16:04:08 +02:00
[[ "$USEGOMA" = "true" ]] && \
2021-09-15 12:17:07 +02:00
autoninja -j $GOMAJOBS -C out/bromite chrome_public_apk \
|| \
2021-09-15 12:22:31 +02:00
autoninja -C out/bromite chrome_public_apk
2021-07-31 15:13:23 +02:00
2021-12-06 15:19:59 +01:00
- name: Get ninja logs
shell: bash
run: |
cd $WORKSPACE
2021-12-08 14:06:50 +01:00
$WORKSPACE/ninjatracing/ninjatracing $WORKSPACE/chromium/src/out/bromite/.ninja_log >$WORKSPACE/chromium/src/out/bromite/ninja_log_trace.json
$WORKSPACE/chromium/src/third_party/catapult/tracing/bin/trace2html $WORKSPACE/chromium/src/out/bromite/ninja_log_trace.json
2021-12-06 15:19:59 +01:00
2021-08-04 14:47:36 +02:00
- name: Get goma logs
shell: bash
run: |
2021-08-04 15:12:57 +02:00
# reset proxy env
HTTP_PROXY=
HTTPS_PROXY=
http_proxy=
https_proxy=
2021-10-10 20:53:22 +02:00
[[ "$USEGOMA" = "true" ]] && \
2021-12-01 08:46:09 +01:00
wget http://127.0.0.1:8088/logz?INFO -O out/bromite/goma-client.log \
2021-10-10 20:53:22 +02:00
|| \
echo Skipped.
2021-08-04 20:08:37 +02:00
- name: Generate breakpad symbols
shell: bash
run: |
2021-08-04 10:14:46 +02:00
PATH=$WORKSPACE/chromium/src/third_party/llvm-build/Release+Asserts/bin:$WORKSPACE/depot_tools/:/usr/local/go/bin:$WORKSPACE/mtool/bin:$PATH
cd $WORKSPACE/chromium/src
2021-08-09 14:28:02 +02:00
echo "::group::-------- generating breakpad symbols"
autoninja -j $GOMAJOBS -C out/bromite minidump_stackwalk dump_syms
components/crash/content/tools/generate_breakpad_symbols.py --build-dir=out/bromite \
2021-12-01 08:46:09 +01:00
--symbols-dir=out/bromite/symbols/ --binary=out/bromite/lib.unstripped/libchrome.so \
2021-08-09 14:28:02 +02:00
--platform=android --clear --verbose
2021-12-01 08:46:09 +01:00
cp out/bromite/lib.unstripped/libchrome.so out/bromite/symbols/libchrome.lib.so
cp out/bromite/minidump_stackwalk out/bromite/symbols
cp out/bromite/dump_syms out/bromite/symbols
2021-08-09 14:28:02 +02:00
echo "::endgroup::"
2021-07-31 15:13:23 +02:00
2022-01-17 14:45:42 +01:00
# - name: Generate kythe kzip
# shell: bash
# run: |
# PATH=$WORKSPACE/chromium/src/third_party/llvm-build/Release+Asserts/bin:$WORKSPACE/depot_tools/:/usr/local/go/bin:$WORKSPACE/mtool/bin:$PATH
# cd $WORKSPACE/chromium/src
#
# gn desc out/bromite 'chrome_public_apk' --format=json >out/bromite/gn_targets.json
#
# #python tools/clang/scripts/run_tool.py --tool translation_unit -p out/bromite/ --all || true
# tools/clang/scripts/run_tool.py --tool translation_unit -p out/bromite || true
# python /home/lg/add_kythe_metadata.py out/bromite/ --corpus $KYTHE_CORPUS || true
#
# /home/lg/package_index/latest/package_index \
# --checkout_dir /home/lg/working_dir/chromium/src \
# --path_to_compdb /home/lg/working_dir/chromium/src/out/bromite/compile_commands.json \
# --path_to_gn_targets /home/lg/working_dir/chromium/src/out/bromite/gn_targets.json \
# --path_to_java_kzips $KYTHE_OUTPUT_DIRECTORY \
# --path_to_archive_output /home/lg/working_dir/chromium/src/out/bromite/chromium_linux.kzip \
# --corpus $KYTHE_CORPUS \
# --out_dir src/out/bromite || true
2021-12-08 13:05:33 +01:00
- name: Generate clangd index
2022-01-26 08:19:13 +01:00
if: ${{ github.event.inputs.debug == 'true' }}
2021-12-08 13:05:33 +01:00
shell: bash
run: |
PATH=$WORKSPACE/chromium/src/third_party/llvm-build/Release+Asserts/bin:$WORKSPACE/depot_tools/:/usr/local/go/bin:$WORKSPACE/mtool/bin:$PATH
cd $WORKSPACE/chromium/src
2022-01-17 14:45:42 +01:00
test -f out/bromite/bromite.idx || \
2022-08-02 17:21:58 +02:00
cp -r out/bromite out/clangd && \
2022-07-12 17:41:44 +02:00
gn gen --args="import(\"/home/lg/working_dir/bromite/build/bromite.gn_args\") $(cat ../../build_args.gni) skip_clangd_unsupported_options = true" out/clangd && \
2022-08-02 17:21:58 +02:00
$WORKSPACE/ninja/ninja -C $WORKSPACE/chromium/src/out/clangd -a chrome_public_apk \
-t compdb cc cxx objc objcxx >$WORKSPACE/chromium/src/out/clangd/compile_commands.json && \
2022-07-12 17:41:44 +02:00
/home/lg/working_dir/clangd_snapshot_20211205/bin/clangd-indexer --executor=all-TUs out/clangd/compile_commands.json >out/bromite/bromite.idx && \
rm -rf out/clangd
2022-01-26 10:00:21 +01:00
- name: Generate Supersize data
if: ${{ github.event.inputs.debug == 'false' }}
shell: bash
run: |
PATH=$WORKSPACE/chromium/src/third_party/llvm-build/Release+Asserts/bin:$WORKSPACE/depot_tools/:/usr/local/go/bin:$WORKSPACE/mtool/bin:$PATH
cd $WORKSPACE/chromium/src
tools/binary_size/supersize archive out/bromite/chrome.size --apk-file out/bromite/apks/ChromePublic.apk -v
2021-12-08 13:05:33 +01:00
2021-08-09 14:33:59 +02:00
- name: Build junit tests
shell: bash
run: |
PATH=$WORKSPACE/chromium/src/third_party/llvm-build/Release+Asserts/bin:$WORKSPACE/depot_tools/:/usr/local/go/bin:$WORKSPACE/mtool/bin:$PATH
cd $WORKSPACE/chromium/src
git log | grep FILE:Fix-build-test-suite.patch && TEST=1
if [[ TEST -eq 1 ]]; then
autoninja -j $GOMAJOBS -C out/bromite chrome_junit_tests
autoninja -j $GOMAJOBS -C out/bromite components_junit_tests
autoninja -j $GOMAJOBS -C out/bromite content_junit_tests
autoninja -j $GOMAJOBS -C out/bromite base_junit_tests
autoninja -j $GOMAJOBS -C out/bromite ui_junit_tests
fi
2021-08-09 14:33:59 +02:00
- name: Build c++ tests
shell: bash
run: |
PATH=$WORKSPACE/chromium/src/third_party/llvm-build/Release+Asserts/bin:$WORKSPACE/depot_tools/:/usr/local/go/bin:$WORKSPACE/mtool/bin:$PATH
cd $WORKSPACE/chromium/src
git log | grep FILE:Fix-build-test-suite.patch && TEST=1
if [[ TEST -eq 1 ]]; then
autoninja -j $GOMAJOBS -C out/bromite network_service
autoninja -j $GOMAJOBS -C out/bromite unit_tests
autoninja -j $GOMAJOBS -C out/bromite content_browsertests
autoninja -j $GOMAJOBS -C out/bromite components_unittests
autoninja -j $GOMAJOBS -C out/bromite components_browsertests
fi
2021-08-09 14:33:59 +02:00
- name: Build instrumentation tests
shell: bash
run: |
PATH=$WORKSPACE/chromium/src/third_party/llvm-build/Release+Asserts/bin:$WORKSPACE/depot_tools/:/usr/local/go/bin:$WORKSPACE/mtool/bin:$PATH
cd $WORKSPACE/chromium/src
git log | grep FILE:Fix-build-test-suite.patch && TEST=1
if [[ TEST -eq 1 ]]; then
autoninja -j $GOMAJOBS -C out/bromite content_shell_test_apk
autoninja -j $GOMAJOBS -C out/bromite chrome_public_test_apk
fi
2021-08-06 07:39:04 +02:00
2021-08-04 20:08:37 +02:00
- name: Stop goma
shell: bash
run: |
PATH=$WORKSPACE/chromium/src/third_party/llvm-build/Release+Asserts/bin:$WORKSPACE/depot_tools/:/usr/local/go/bin:$WORKSPACE/mtool/bin:$PATH
cd $WORKSPACE/chromium/src
2021-07-31 15:13:23 +02:00
echo "::group::-------- stop goma"
2021-10-11 12:47:28 +02:00
[[ "$USEGOMA" = "true" ]] && $WORKSPACE/goma/goma_ctl.py ensure_stop || true
[[ "$USEGOMA" = "true" ]] && find /tmp/ -maxdepth 1 -name "gomacc*" -print0 | xargs -0 rm || true
[[ "$USEGOMA" = "true" ]] && rm -rf /tmp/goma_lg/ || true
2021-07-31 15:13:23 +02:00
echo "::endgroup::"