|
|
|
@@ -114,14 +114,14 @@ jobs:
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
- name: Building bromite container ${{ env.BROMITE_SHA }}
|
|
|
|
|
- name: Building bromite container ${{ env.VERSION }}-${{ env.BROMITE_SHA }}
|
|
|
|
|
shell: bash
|
|
|
|
|
run: |
|
|
|
|
|
IS_PRESENT=$(docker inspect --type=image uazo/bromite:$BROMITE_SHA > /dev/null ; echo $?)
|
|
|
|
|
IS_PRESENT=$(docker inspect --type=image uazo/bromite:$VERSION-$BROMITE_SHA > /dev/null ; echo $?)
|
|
|
|
|
if [ $IS_PRESENT -ne "0" ]; then
|
|
|
|
|
IS_PRESENT=$(docker manifest inspect uazo/bromite:$BROMITE_SHA > /dev/null ; echo $?)
|
|
|
|
|
IS_PRESENT=$(docker manifest inspect uazo/bromite:$VERSION-$BROMITE_SHA > /dev/null ; echo $?)
|
|
|
|
|
if [ $IS_PRESENT -ne "0" ]; then
|
|
|
|
|
DOCKER_BUILDKIT=1 docker build -t uazo/bromite:$BROMITE_SHA --progress plain \
|
|
|
|
|
DOCKER_BUILDKIT=1 docker build -t uazo/bromite:$VERSION-$BROMITE_SHA --progress plain \
|
|
|
|
|
--build-arg BROMITE_SHA=$BROMITE_SHA \
|
|
|
|
|
--build-arg VERSION=$VERSION \
|
|
|
|
|
--build-arg HTTP_PROXY="$PROXY_ADDR" \
|
|
|
|
@@ -129,15 +129,16 @@ jobs:
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
- name: Building bromite-build container ${{ env.BROMITE_SHA }}
|
|
|
|
|
- name: Building bromite-build container ${{ env.VERSION }}-${{ env.BROMITE_SHA }}
|
|
|
|
|
shell: bash
|
|
|
|
|
run: |
|
|
|
|
|
IS_PRESENT=$(docker inspect --type=image uazo/bromite-build:$BROMITE_SHA > /dev/null ; echo $?)
|
|
|
|
|
IS_PRESENT=$(docker inspect --type=image uazo/bromite-build:$VERSION-$BROMITE_SHA > /dev/null ; echo $?)
|
|
|
|
|
if [ $IS_PRESENT -ne "0" ]; then
|
|
|
|
|
IS_PRESENT=$(docker manifest inspect uazo/bromite-build:$BROMITE_SHA > /dev/null ; echo $?)
|
|
|
|
|
IS_PRESENT=$(docker manifest inspect uazo/bromite-build:$VERSION-$BROMITE_SHA > /dev/null ; echo $?)
|
|
|
|
|
if [ $IS_PRESENT -ne "0" ]; then
|
|
|
|
|
DOCKER_BUILDKIT=1 docker build -t uazo/bromite-build:$BROMITE_SHA --progress plain \
|
|
|
|
|
DOCKER_BUILDKIT=1 docker build -t uazo/bromite-build:$VERSION-$BROMITE_SHA --progress plain \
|
|
|
|
|
--build-arg BROMITE_SHA=$BROMITE_SHA \
|
|
|
|
|
--build-arg VERSION=$VERSION \
|
|
|
|
|
--build-arg HTTP_PROXY="$PROXY_ADDR" \
|
|
|
|
|
--no-cache \
|
|
|
|
|
bromite-buildtools/images/bromite-build/.
|
|
|
|
@@ -151,7 +152,7 @@ jobs:
|
|
|
|
|
if [ $IS_PRESENT -eq "0" ]; then
|
|
|
|
|
docker rmi uazo/bromite-build:build
|
|
|
|
|
fi
|
|
|
|
|
docker tag uazo/bromite-build:$BROMITE_SHA uazo/bromite-build:build
|
|
|
|
|
docker tag uazo/bromite-build:$VERSION-$BROMITE_SHA uazo/bromite-build:build
|
|
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
runs-on: ${{ github.event.inputs.type }}
|
|
|
|
@@ -171,9 +172,9 @@ jobs:
|
|
|
|
|
KYTHE_ROOT_DIRECTORY: /home/lg/working_dir/chromium/src
|
|
|
|
|
KYTHE_OUTPUT_DIRECTORY: /home/lg/working_dir/chromium/src/out/bromite/kythe
|
|
|
|
|
# cross build
|
|
|
|
|
DEPOT_TOOLS_WIN_TOOLCHAIN_BASE_URL: /win_sdk/10.0.20348.0/
|
|
|
|
|
WINDOWSSDKDIR: "/win_sdk/10.0.20348.0/Windows Kits/10/"
|
|
|
|
|
GYP_MSVS_OVERRIDE_PATH: /win_sdk/10.0.20348.0/
|
|
|
|
|
DEPOT_TOOLS_WIN_TOOLCHAIN_BASE_URL: /win_sdk/10.0.22621.0/
|
|
|
|
|
WINDOWSSDKDIR: "/win_sdk/10.0.22621.0/Windows Kits/10/"
|
|
|
|
|
GYP_MSVS_OVERRIDE_PATH: /win_sdk/10.0.22621.0/
|
|
|
|
|
# compile in debug mode
|
|
|
|
|
TARGET_ISDEBUG: ${{ github.event.inputs.debug }}
|
|
|
|
|
TARGET_CPU: ${{ github.event.inputs.build }}
|
|
|
|
@@ -241,7 +242,7 @@ jobs:
|
|
|
|
|
run: |
|
|
|
|
|
cd $WORKSPACE
|
|
|
|
|
$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
|
|
|
|
|
python3 $WORKSPACE/chromium/src/third_party/catapult/tracing/bin/trace2html $WORKSPACE/chromium/src/out/bromite/ninja_log_trace.json
|
|
|
|
|
|
|
|
|
|
- name: Build Bromite Windows
|
|
|
|
|
if: ${{ github.event.inputs.target_os == 'win' || github.event.inputs.target_os == 'all' }}
|
|
|
|
@@ -269,7 +270,7 @@ jobs:
|
|
|
|
|
run: |
|
|
|
|
|
cd $WORKSPACE
|
|
|
|
|
$WORKSPACE/ninjatracing/ninjatracing $WORKSPACE/chromium/src/out/bromite_win/.ninja_log >$WORKSPACE/chromium/src/out/bromite_win/ninja_log_trace.json
|
|
|
|
|
$WORKSPACE/chromium/src/third_party/catapult/tracing/bin/trace2html $WORKSPACE/chromium/src/out/bromite_win/ninja_log_trace.json
|
|
|
|
|
python3 $WORKSPACE/chromium/src/third_party/catapult/tracing/bin/trace2html $WORKSPACE/chromium/src/out/bromite_win/ninja_log_trace.json
|
|
|
|
|
|
|
|
|
|
- name: Generate breakpad symbols
|
|
|
|
|
if: ${{ github.event.inputs.target_os == 'android' || github.event.inputs.target_os == 'all' }}
|
|
|
|
|