Compare commits

...

8 Commits

Author SHA1 Message Date
uazo
e43ea749c6 Generate Supersize data 2022-01-26 10:00:21 +01:00
uazo
38dfc316cb fix if statement 2022-01-26 08:19:13 +01:00
uazo
fd89c5a639 Generate clangd index only on debug build 2022-01-24 17:21:06 +01:00
uazo
43261db144 fix remote index tag 2022-01-22 09:18:35 +01:00
uazo
489ae12c5c Update release.yaml 2022-01-19 08:23:03 +01:00
uazo
aeccb9578f Update build_args.gni 2022-01-17 18:08:26 +01:00
uazo
71cd8c86b7 Update build_bromite_dev.yaml 2022-01-17 18:07:46 +01:00
uazo
c7db69f56a Update release.yaml 2022-01-17 17:56:42 +01:00
4 changed files with 19 additions and 9 deletions

View File

@@ -185,7 +185,7 @@ jobs:
KYTHE_ROOT_DIRECTORY: /home/lg/working_dir/chromium/src
KYTHE_OUTPUT_DIRECTORY: /home/lg/working_dir/chromium/src/out/bromite/kythe
# compile in debug mode
TARGET_ISDEBUG: true
TARGET_ISDEBUG: ${{ github.event.inputs.debug }}
TARGET_CPU: ${{ github.event.inputs.build }}
volumes:
- /storage/images/${{ github.event.inputs.build }}/${{ github.event.inputs.sha }}:/home/lg/working_dir/chromium/src/out/bromite
@@ -342,8 +342,6 @@ jobs:
# 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
#
# $WORKSPACE/ninja/ninja -C $WORKSPACE/chromium/src/out/bromite -a chrome_public_apk \
# -t compdb cc cxx objc objcxx >$WORKSPACE/chromium/src/out/bromite/compile_commands.json
# 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
@@ -360,13 +358,26 @@ jobs:
# --out_dir src/out/bromite || true
- name: Generate clangd index
if: ${{ github.event.inputs.debug == 'true' }}
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
$WORKSPACE/ninja/ninja -C $WORKSPACE/chromium/src/out/bromite -a chrome_public_apk \
-t compdb cc cxx objc objcxx >$WORKSPACE/chromium/src/out/bromite/compile_commands.json
test -f out/bromite/bromite.idx || \
/home/lg/working_dir/clangd_snapshot_20211205/bin/clangd-indexer --executor=all-TUs out/bromite/compile_commands.json >out/bromite/bromite.idx
- 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
- name: Build junit tests
shell: bash

View File

@@ -1,7 +1,6 @@
name: Release Bromite CI
#permissions:
# contents: write
# repo: write
permissions:
contents: write
on:
workflow_dispatch:
@@ -74,7 +73,7 @@ jobs:
cd bromite
VERSION=v$(cat ${{ env.OUTPUTFILE }}/RELEASE)-${{ github.event.inputs.build }}
../gh_2.4.0_linux_amd64/bin/gh release create $VERSION \
../gh_2.4.0_linux_amd64/bin/gh release create $VERSION-$BROMITE_SHA \
../$APK --notes ""
# - name: Enable proxy on container

View File

@@ -16,7 +16,7 @@ if(getenv("TARGET_CPU") != "") {
enable_kythe_annotations = true
clang_use_chrome_plugins = false
if(!(_is_debug_build == "")) {
if(_is_debug_build == "true") {
# print("Debug build on")
is_debug = true
is_official_build = false

View File

@@ -13,7 +13,7 @@ fi
sudo docker -H $DOCKER_SOCK cp $DEV_CONTAINER:/home/lg/working_dir/chromium/src/out/bromite/bromite.idx .
sudo docker -H $DOCKER_SOCK cp $DEV_CONTAINER:/home/lg/working_dir/bromite/build/RELEASE .
INDEX_VERSION=$(cat RELEASE)
#INDEX_VERSION=$(cat RELEASE)
DOCKER_BUILDKIT=1 docker build -t uazo/bromite-remote-index:$INDEX_VERSION \
--progress plain \
--no-cache \