Update build_bromite.yaml

This commit is contained in:
uazo 2021-09-15 16:04:08 +02:00 committed by GitHub
parent c03e54ab48
commit c6bbd87a52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,7 @@ on:
env: env:
BROMITE_SHA: ${{ github.event.inputs.sha }} BROMITE_SHA: ${{ github.event.inputs.sha }}
USEGOMA: ${{ github.event.inputs.usegoma }}
REMOVEDOCKERSUPPORT: true REMOVEDOCKERSUPPORT: true
USELOCALIMAGE: true USELOCALIMAGE: true
GOMAJOBS: 60 GOMAJOBS: 60
@ -207,7 +208,7 @@ jobs:
export GOMA_ARBITRARY_TOOLCHAIN_SUPPORT=true export GOMA_ARBITRARY_TOOLCHAIN_SUPPORT=true
# start goma client # start goma client
[[ "${{ inputs.usegoma }}" = "true ]] && \ [[ "$USEGOMA" = "true" ]] && \
echo "::group::-------- start goma client" && \ echo "::group::-------- start goma client" && \
$WORKSPACE/goma/goma_ctl.py ensure_stop && \ $WORKSPACE/goma/goma_ctl.py ensure_stop && \
$WORKSPACE/goma/goma_ctl.py ensure_start && \ $WORKSPACE/goma/goma_ctl.py ensure_start && \
@ -227,7 +228,7 @@ jobs:
echo "::endgroup::" echo "::endgroup::"
echo "::group::-------- gn gen" echo "::group::-------- gn gen"
[[ "${{ inputs.usegoma }}" = "true" ]] && \ [[ "$USEGOMA" = "true" ]] && \
gn gen --args="import(\"/home/lg/working_dir/bromite/build/GN_ARGS\") use_goma=true goma_dir=\"$WORKSPACE/goma\" $(cat ../../build_args.gni) " out/bromite \ gn gen --args="import(\"/home/lg/working_dir/bromite/build/GN_ARGS\") use_goma=true goma_dir=\"$WORKSPACE/goma\" $(cat ../../build_args.gni) " out/bromite \
|| \ || \
gn gen --args="import(\"/home/lg/working_dir/bromite/build/GN_ARGS\") $(cat ../../build_args.gni) " out/bromite gn gen --args="import(\"/home/lg/working_dir/bromite/build/GN_ARGS\") $(cat ../../build_args.gni) " out/bromite
@ -251,7 +252,7 @@ jobs:
fi fi
echo "::group::-------- pre-cache toolchain" echo "::group::-------- pre-cache toolchain"
[[ "${{ inputs.usegoma }}" = "true" ]] && \ [[ "$USEGOMA" = "true" ]] && \
sudo ../../casupload --cas-server=unix:/tmp/proxy/bots.sock --instance=default_instance \ 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/sysroot/usr/include \
third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/include \ third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/include \
@ -268,14 +269,13 @@ jobs:
PATH=$WORKSPACE/chromium/src/third_party/llvm-build/Release+Asserts/bin:$WORKSPACE/depot_tools/:/usr/local/go/bin:$WORKSPACE/mtool/bin:$PATH 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 cd $WORKSPACE/chromium/src
[[ "${{ inputs.usegoma }}" = "true" ]] && \ [[ "$USEGOMA" = "true" ]] && \
autoninja -j $GOMAJOBS -C out/bromite chrome_public_apk \ autoninja -j $GOMAJOBS -C out/bromite chrome_public_apk \
|| \ || \
autoninja -C out/bromite chrome_public_apk autoninja -C out/bromite chrome_public_apk
- name: Get goma logs - name: Get goma logs
shell: bash shell: bash
if: ${{ inputs.usegoma }} = "true"
run: | run: |
# reset proxy env # reset proxy env
HTTP_PROXY= HTTP_PROXY=
@ -283,7 +283,8 @@ jobs:
http_proxy= http_proxy=
https_proxy= https_proxy=
wget http://127.0.0.1:8088/logz?INFO -O $ARTIFACS_DIR/goma-client.log [[ "$USEGOMA" = "true" ]] &&
wget http://127.0.0.1:8088/logz?INFO -O $ARTIFACS_DIR/goma-client.log
- name: Generate breakpad symbols - name: Generate breakpad symbols
shell: bash shell: bash
@ -359,7 +360,6 @@ jobs:
- name: Stop goma - name: Stop goma
shell: bash shell: bash
if: ${{ inputs.usegoma }} = "true"
run: | run: |
PATH=$WORKSPACE/chromium/src/third_party/llvm-build/Release+Asserts/bin:$WORKSPACE/depot_tools/:/usr/local/go/bin:$WORKSPACE/mtool/bin:$PATH 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 cd $WORKSPACE/chromium/src