fix generate_breakpad_symbols.py

This commit is contained in:
uazo 2021-08-04 20:08:37 +02:00 committed by GitHub
parent 34ce200a7f
commit e1c49af901
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,7 @@ env:
BROMITE_SHA: ${{ github.event.inputs.sha }} BROMITE_SHA: ${{ github.event.inputs.sha }}
REMOVEDOCKERSUPPORT: true REMOVEDOCKERSUPPORT: true
USELOCALIMAGE: true USELOCALIMAGE: true
GOMAJOBS: 60
jobs: jobs:
check_images: check_images:
@ -251,8 +252,6 @@ jobs:
- name: Build Bromite - name: Build Bromite
shell: bash shell: bash
env:
GOMAJOBS: 60
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
@ -270,33 +269,46 @@ jobs:
wget http://127.0.0.1:8088/logz?INFO -O $ARTIFACS_DIR/goma-client.log wget http://127.0.0.1:8088/logz?INFO -O $ARTIFACS_DIR/goma-client.log
- name: Wait forever - name: Generate breakpad symbols
shell: bash shell: bash
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
sleep infinity #sleep infinity
cp out/bromite/apks/* $WORKSPACE/artifacs/ cp out/bromite/apks/* $WORKSPACE/artifacs/
echo "::group::-------- generating breakpad symbols" echo "::group::-------- generating breakpad symbols"
autoninja -j $GOMAJOBS -C out/bromite minidump_stackwalk dump_syms autoninja -j $GOMAJOBS -C out/bromite minidump_stackwalk dump_syms
components/crash/content/tools/generate_breakpad_symbols.py --build-dir=out/bromite \ components/crash/content/tools/generate_breakpad_symbols.py --build-dir=out/bromite \
--symbols-dir=$ARTIFACS_DIR/symbols/ --binary=out/bromite/lib.unstripped/libchrome.so --clear --verbose --symbols-dir=$ARTIFACS_DIR/symbols/ --binary=out/bromite/lib.unstripped/libchrome.so \
--platform=android --clear --verbose
cp out/bromite/lib.unstripped/libchrome.so $ARTIFACS_DIR/symbols/libchrome.lib.so cp out/bromite/lib.unstripped/libchrome.so $ARTIFACS_DIR/symbols/libchrome.lib.so
cp out/bromite/minidump_stackwalk $ARTIFACS_DIR/symbols cp out/bromite/minidump_stackwalk $ARTIFACS_DIR/symbols
cp out/bromite/dump_syms $ARTIFACS_DIR/symbols cp out/bromite/dump_syms $ARTIFACS_DIR/symbols
echo "::endgroup::" echo "::endgroup::"
- name: Sync out folder
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
echo "::group::-------- sync out folder" echo "::group::-------- sync out folder"
$WORKSPACE/mtool/chromium/mtime.sh --backup $WORKSPACE/mtool/chromium/mtime.sh --backup
mv .mtool out/bromite/ mv .mtool out/bromite/
cp -arp out/bromite $ARTIFACS_DIR/out cp -arp out/bromite $ARTIFACS_DIR/out
echo "::endgroup::" echo "::endgroup::"
- 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
echo "::group::-------- stop goma" echo "::group::-------- stop goma"
$WORKSPACE/goma/goma_ctl.py ensure_stop $WORKSPACE/goma/goma_ctl.py ensure_stop
rm /tmp/gomacc* find /tmp/ -maxdepth 1 -name "gomacc*" -print0 | xargs -0 rm
rm -rf /tmp/goma_lg/ rm -rf /tmp/goma_lg/
echo "::endgroup::" echo "::endgroup::"