Compare commits
60 Commits
v102.0.500
...
v107.0.530
Author | SHA1 | Date | |
---|---|---|---|
|
4432e3bc3b | ||
|
400575271c | ||
|
eed67c45b1 | ||
|
f6ceaa75a8 | ||
|
2976fd07ff | ||
|
a880652f08 | ||
|
ac45d8cb17 | ||
|
e22b3b9512 | ||
|
e73b4e3c55 | ||
|
fd8a710847 | ||
|
5bfbb668f4 | ||
|
8bccbc8d51 | ||
|
6a33b40dc0 | ||
|
0500a3879c | ||
|
c515d1a4dc | ||
|
a872a2dee8 | ||
|
fdff032db3 | ||
|
cf67ee0fea | ||
|
60ee49376e | ||
|
a2f4b53004 | ||
|
6ab623651a | ||
|
f1a9ac6b85 | ||
|
79c228817d | ||
|
3c96df9b59 | ||
|
255d44a353 | ||
|
2bede818cd | ||
|
7574d8dbac | ||
|
7fa6f201ac | ||
|
9f874b4107 | ||
|
707e458f8e | ||
|
09730122e9 | ||
|
23a88c1eb8 | ||
|
e1996161c3 | ||
|
f6ee667765 | ||
|
c3eb2dcb7b | ||
|
bd3bf8e9cf | ||
|
7ce76c0224 | ||
|
37512410b0 | ||
|
772162a0db | ||
|
3d1f8a1c0d | ||
|
9832622c39 | ||
|
0e1c4bc71a | ||
|
c59ea691bd | ||
|
daca99c6c5 | ||
|
e826c60239 | ||
|
50441d00bc | ||
|
dc0253788a | ||
|
ddc84733e9 | ||
|
3d2a3fb5fd | ||
|
6e62f4a85d | ||
|
406a5d83c2 | ||
|
963ab065f9 | ||
|
e15c9f918b | ||
|
aa33b64d6c | ||
|
4893074e00 | ||
|
abf39d8c09 | ||
|
fd177a7772 | ||
|
2de67fd5af | ||
|
a284b224fb | ||
|
d5b30106a5 |
130
.github/workflows/build-images.yaml
vendored
130
.github/workflows/build-images.yaml
vendored
@@ -3,7 +3,7 @@ permissions:
|
|||||||
checks: none
|
checks: none
|
||||||
contents: none
|
contents: none
|
||||||
deployments: none
|
deployments: none
|
||||||
issues: none
|
issues: write
|
||||||
packages: none
|
packages: none
|
||||||
pull-requests: none
|
pull-requests: none
|
||||||
repository-projects: none
|
repository-projects: none
|
||||||
@@ -11,58 +11,102 @@ permissions:
|
|||||||
statuses: none
|
statuses: none
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_dispatch:
|
||||||
tags:
|
inputs:
|
||||||
- 'v*'
|
version:
|
||||||
|
description: 'chromium version'
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
|
schedule:
|
||||||
|
- cron: '0 5 * * *'
|
||||||
|
|
||||||
|
env:
|
||||||
|
VERSION: ${{ github.event.inputs.version }}
|
||||||
|
NEW_VERSION: ${{ null }}
|
||||||
|
|
||||||
name: Builds and pushes tagged image to DockerHub
|
name: Builds and pushes tagged image to DockerHub
|
||||||
jobs:
|
jobs:
|
||||||
generate_build_deps:
|
generate_build_deps:
|
||||||
name: Generate Build Deps
|
name: Generate Build Deps
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: docker/setup-buildx-action@v1
|
|
||||||
- uses: docker/login-action@v1
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
||||||
- name: Find VERSION
|
|
||||||
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
|
|
||||||
- name: Docker Build and Push
|
|
||||||
uses: docker/build-push-action@v2
|
|
||||||
with:
|
|
||||||
context: ./images/build-deps
|
|
||||||
push: true
|
|
||||||
build-args: VERSION=${{ env.VERSION }}
|
|
||||||
tags: |
|
|
||||||
uazo/build-deps:${{ env.VERSION }}
|
|
||||||
|
|
||||||
generate_chromium_src:
|
|
||||||
name: Generate Chromium Sources
|
|
||||||
needs: generate_build_deps
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: docker/setup-buildx-action@v1
|
|
||||||
- uses: docker/login-action@v1
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
||||||
- name: Reclaiming disk space on / by removing dotnet/android/ghc
|
- name: Reclaiming disk space on / by removing dotnet/android/ghc
|
||||||
run: |
|
run: |
|
||||||
sudo rm -rf /usr/share/dotnet
|
sudo rm -rf /usr/share/dotnet
|
||||||
sudo rm -rf /usr/local/lib/android
|
sudo rm -rf /usr/local/lib/android
|
||||||
sudo rm -rf /opt/ghc
|
sudo rm -rf /opt/ghc
|
||||||
sudo apt-get remove google-cloud-sdk azure-cli ghc-9.0.1 ghc-8.10.4 hhvm google-chrome-stable firefox mysql-server-core-8.0 mono-devel mongodb-org-server podman mongodb-org-mongos powershell dotnet-runtime-3.1 dotnet-runtime-5.0 dotnet-sdk-3.1 dotnet-sdk-5.0
|
sudo apt-get remove google-cloud-sdk azure-cli hhvm google-chrome-stable \
|
||||||
|
firefox mysql-server-core-8.0 mono-devel mongodb-org-server podman mongodb-org-mongos \
|
||||||
|
powershell dotnet-runtime-3.1 dotnet-runtime-5.0 dotnet-sdk-3.1 dotnet-sdk-5.0
|
||||||
sudo apt-get autoremove
|
sudo apt-get autoremove
|
||||||
- name: Find VERSION
|
|
||||||
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
|
- name: Checkout repo
|
||||||
- name: Docker Build and Push
|
uses: actions/checkout@v2
|
||||||
uses: docker/build-push-action@v2
|
|
||||||
with:
|
with:
|
||||||
context: ./images/chr-source
|
path: bromite-buildtools
|
||||||
push: true
|
fetch-depth: 1
|
||||||
build-args: VERSION=${{ env.VERSION }}
|
|
||||||
tags: |
|
- name: Login to Docker Hub
|
||||||
uazo/chromium:${{ env.VERSION }}
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Check versions
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
if [ -z $VERSION ]; then
|
||||||
|
VERSION=$(curl -s https://omahaproxy.appspot.com/all.json | jq '.[] | select(.os | contains("win64")) | .versions[] | select(.channel | contains("stable")) | .current_version' | xargs)
|
||||||
|
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Building build-deps container ${{ env.VERSION }}
|
||||||
|
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
|
||||||
|
DOCKER_BUILDKIT=1 docker build -t uazo/build-deps:$VERSION \
|
||||||
|
--progress plain \
|
||||||
|
--build-arg VERSION=$VERSION \
|
||||||
|
--build-arg HTTP_PROXY="$PROXY_ADDR" \
|
||||||
|
--no-cache \
|
||||||
|
bromite-buildtools/images/build-deps/.
|
||||||
|
|
||||||
|
docker push uazo/build-deps:$VERSION
|
||||||
|
echo "NEW_VERSION=$VERSION" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Building chromium container ${{ env.VERSION }}
|
||||||
|
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
|
||||||
|
DOCKER_BUILDKIT=1 docker build -t uazo/chromium:$VERSION \
|
||||||
|
--progress plain \
|
||||||
|
--build-arg VERSION=$VERSION \
|
||||||
|
--build-arg HTTP_PROXY="$PROXY_ADDR" \
|
||||||
|
bromite-buildtools/images/chr-source/.
|
||||||
|
|
||||||
|
docker push uazo/chromium:$VERSION
|
||||||
|
echo "NEW_VERSION=$VERSION" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Create issue ${{ env.VERSION }}
|
||||||
|
if: "${{ env.NEW_VERSION != '' }}"
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
GH=gh_2.18.1_linux_amd64/bin/gh
|
||||||
|
wget https://github.com/cli/cli/releases/download/v2.18.1/gh_2.18.1_linux_amd64.tar.gz
|
||||||
|
tar xfz gh_2.18.1_linux_amd64.tar.gz
|
||||||
|
|
||||||
|
echo ${{ secrets.GITHUB_TOKEN }} | $GH auth login --with-token
|
||||||
|
$GH issue create -t "$VERSION: new stable chromium version" -b ""
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
281
.github/workflows/build_bromite_dev.yaml
vendored
281
.github/workflows/build_bromite_dev.yaml
vendored
@@ -17,9 +17,13 @@ on:
|
|||||||
sha:
|
sha:
|
||||||
description: 'uazo/bromite SHA'
|
description: 'uazo/bromite SHA'
|
||||||
required: true
|
required: true
|
||||||
default: '76745fde6ed75542f005ea5528f486df41c56da4'
|
default: ''
|
||||||
|
target_os:
|
||||||
|
description: 'targetos [android/win/all]'
|
||||||
|
required: true
|
||||||
|
default: 'all'
|
||||||
build:
|
build:
|
||||||
description: 'arch [arm64/x64]'
|
description: 'android arch [arm64/x64]'
|
||||||
required: true
|
required: true
|
||||||
default: 'x64'
|
default: 'x64'
|
||||||
type:
|
type:
|
||||||
@@ -30,17 +34,15 @@ on:
|
|||||||
description: 'debug? [true/false]'
|
description: 'debug? [true/false]'
|
||||||
required: true
|
required: true
|
||||||
default: 'true'
|
default: 'true'
|
||||||
usegoma:
|
clangd:
|
||||||
description: 'Use goma? [true/false]'
|
description: 'clangd? [true/false]'
|
||||||
required: true
|
required: true
|
||||||
default: 'false'
|
default: 'false'
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check_images:
|
check_images:
|
||||||
@@ -156,40 +158,31 @@ jobs:
|
|||||||
needs: check_images
|
needs: check_images
|
||||||
if: success()
|
if: success()
|
||||||
timeout-minutes: 720
|
timeout-minutes: 720
|
||||||
|
|
||||||
services:
|
|
||||||
gomaserver:
|
|
||||||
image: uazo/goma-server
|
|
||||||
volumes:
|
|
||||||
- /tmp/proxy:/tmp/proxy
|
|
||||||
- /redis:/var/lib/redis
|
|
||||||
options: >-
|
|
||||||
--health-cmd "hostname -I >/tmp/proxy/gomaserverip"
|
|
||||||
--health-interval 30s
|
|
||||||
--health-timeout 5s
|
|
||||||
--health-retries 5
|
|
||||||
|
|
||||||
env:
|
|
||||||
REMOVEDOCKERSUPPORT: true
|
|
||||||
USELOCALIMAGE: true
|
|
||||||
|
|
||||||
container:
|
container:
|
||||||
image: uazo/bromite-build:build
|
image: uazo/bromite-build:build
|
||||||
env:
|
env:
|
||||||
SERVER_HOST_GOMA: gomaserver
|
|
||||||
REMOVEDOCKERSUPPORT: true # CUSTOM RUNNER: remove sharing of docker socket
|
REMOVEDOCKERSUPPORT: true # CUSTOM RUNNER: remove sharing of docker socket
|
||||||
USELOCALIMAGE: true # CUSTOM RUNNER: permit use of local images
|
USELOCALIMAGE: true # CUSTOM RUNNER: permit use of local images
|
||||||
USEINTERNALNETWORK: true # CUSTOM RUNNER: create the docker network as internal
|
USEINTERNALNETWORK: true # CUSTOM RUNNER: create the docker network as internal
|
||||||
WORKSPACE: /home/lg/working_dir
|
WORKSPACE: /home/lg/working_dir
|
||||||
|
# kythe
|
||||||
KYTHE_CORPUS: chromium.googlesource.com/chromium/src
|
KYTHE_CORPUS: chromium.googlesource.com/chromium/src
|
||||||
KYTHE_ROOT_DIRECTORY: /home/lg/working_dir/chromium/src
|
KYTHE_ROOT_DIRECTORY: /home/lg/working_dir/chromium/src
|
||||||
KYTHE_OUTPUT_DIRECTORY: /home/lg/working_dir/chromium/src/out/bromite/kythe
|
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/
|
||||||
# compile in debug mode
|
# compile in debug mode
|
||||||
TARGET_ISDEBUG: ${{ github.event.inputs.debug }}
|
TARGET_ISDEBUG: ${{ github.event.inputs.debug }}
|
||||||
TARGET_CPU: ${{ github.event.inputs.build }}
|
TARGET_CPU: ${{ github.event.inputs.build }}
|
||||||
|
TARGET_OS: ${{ github.event.inputs.target_os }}
|
||||||
volumes:
|
volumes:
|
||||||
- /storage/images/${{ github.event.inputs.build }}/${{ github.event.inputs.sha }}:/home/lg/working_dir/chromium/src/out/bromite
|
- /storage/images/android/${{ github.event.inputs.build }}/${{ github.event.inputs.sha }}:/home/lg/working_dir/chromium/src/out/bromite
|
||||||
|
- /storage/images/win/x64/${{ github.event.inputs.sha }}:/home/lg/working_dir/chromium/src/out/bromite_win
|
||||||
- /tmp/proxy:/tmp/proxy
|
- /tmp/proxy:/tmp/proxy
|
||||||
|
- /win_sdk:/win_sdk
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Prepare Build Container
|
- name: Prepare Build Container
|
||||||
@@ -205,26 +198,14 @@ jobs:
|
|||||||
http_proxy=
|
http_proxy=
|
||||||
https_proxy=
|
https_proxy=
|
||||||
|
|
||||||
# update hosts
|
|
||||||
#sudo echo "$(cat /tmp/proxy/gomaserverip | xargs) gomaserver" >/etc/hosts
|
|
||||||
#sudo echo "$(cat /tmp/proxy/redisip | xargs) redis" >/etc/hosts
|
|
||||||
|
|
||||||
# set goma options
|
|
||||||
export SERVER_HOST_GOMA=$(cat /tmp/proxy/gomaserverip | xargs)
|
|
||||||
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
|
|
||||||
|
|
||||||
# set out folder permissions
|
# set out folder permissions
|
||||||
test -d chromium/src/out/bromite || sudo mkdir -p chromium/src/out/bromite && \
|
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 &&
|
||||||
sudo chown lg chromium/src/out/bromite &&
|
sudo chown lg chromium/src/out/bromite
|
||||||
|
|
||||||
|
test -d chromium/src/out/bromite_win || sudo mkdir -p chromium/src/out/bromite_win && \
|
||||||
|
sudo chown lg chromium/src/out &&
|
||||||
|
sudo chown lg chromium/src/out/bromite_win
|
||||||
|
|
||||||
# make kythe output directory
|
# make kythe output directory
|
||||||
test -d $KYTHE_OUTPUT_DIRECTORY || mkdir -p $KYTHE_OUTPUT_DIRECTORY
|
test -d $KYTHE_OUTPUT_DIRECTORY || mkdir -p $KYTHE_OUTPUT_DIRECTORY
|
||||||
@@ -233,101 +214,72 @@ jobs:
|
|||||||
sudo chown lg /run/user/1000/
|
sudo chown lg /run/user/1000/
|
||||||
sudo chmod g-rxw /run/user/1000/
|
sudo chmod g-rxw /run/user/1000/
|
||||||
sudo chmod o-rxw /run/user/1000/
|
sudo chmod o-rxw /run/user/1000/
|
||||||
|
|
||||||
# start goma client
|
|
||||||
[[ "$USEGOMA" = "true" ]] && \
|
|
||||||
echo "::group::-------- start goma client" && \
|
|
||||||
$WORKSPACE/goma/goma_ctl.py ensure_stop && \
|
|
||||||
$WORKSPACE/goma/goma_ctl.py ensure_start && \
|
|
||||||
echo "::endgroup::" \
|
|
||||||
|| true
|
|
||||||
|
|
||||||
cd chromium/src
|
- name: Build Bromite Android
|
||||||
|
if: ${{ github.event.inputs.target_os == 'android' || github.event.inputs.target_os == 'all' }}
|
||||||
OUT_PRESENT=0
|
|
||||||
test -f out/bromite/prepare_gn && OUT_PRESENT=1
|
|
||||||
if [[ OUT_PRESENT -eq 0 ]]; then
|
|
||||||
|
|
||||||
echo "::group::-------- gn gen"
|
|
||||||
[[ "$USEGOMA" = "true" ]] && \
|
|
||||||
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 \
|
|
||||||
|| \
|
|
||||||
gn gen --args="import(\"/home/lg/working_dir/bromite/build/bromite.gn_args\") $(cat ../../build_args.gni) " out/bromite
|
|
||||||
echo "::endgroup::"
|
|
||||||
|
|
||||||
echo "::group::-------- gn args"
|
|
||||||
gn args out/bromite/ --list --short
|
|
||||||
gn args out/bromite/ --list >out/bromite/gn_list
|
|
||||||
echo "::endgroup::"
|
|
||||||
|
|
||||||
echo "::group::-------- apply .mtool"
|
|
||||||
test -f out/bromite/.mtool && \
|
|
||||||
cp out/bromite/.mtool .mtool && \
|
|
||||||
$WORKSPACE/mtool/chromium/mtime.sh --restore
|
|
||||||
echo "::endgroup::"
|
|
||||||
|
|
||||||
echo "OK" >out/bromite/prepare_gn
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
cp ../../bromite/build/RELEASE out/bromite
|
|
||||||
|
|
||||||
if [[ -z "${GOMAJOBS}" ]]; then
|
|
||||||
GOMAJOBS=40
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "::group::-------- pre-cache toolchain"
|
|
||||||
[[ "$USEGOMA" = "true" ]] && \
|
|
||||||
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++ \
|
|
||||||
chrome/android/profiles/afdo.prof \
|
|
||||||
|| true
|
|
||||||
echo "::endgroup::"
|
|
||||||
|
|
||||||
- name: Build Bromite
|
|
||||||
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
|
||||||
|
|
||||||
[[ "$USEGOMA" = "true" ]] && \
|
|
||||||
autoninja -j $GOMAJOBS -C out/bromite chrome_public_apk \
|
|
||||||
|| \
|
|
||||||
autoninja -C out/bromite chrome_public_apk
|
|
||||||
|
|
||||||
- name: Get ninja logs
|
echo "::group::-------- gn gen"
|
||||||
|
gn gen --args="import(\"/home/lg/working_dir/bromite/build/bromite.gn_args\") $(cat ../../build_args.gni) " out/bromite
|
||||||
|
echo "::endgroup::"
|
||||||
|
|
||||||
|
echo "::group::-------- gn args"
|
||||||
|
gn args out/bromite/ --list --short
|
||||||
|
gn args out/bromite/ --list >out/bromite/gn_list
|
||||||
|
echo "::endgroup::"
|
||||||
|
|
||||||
|
autoninja -C out/bromite chrome_public_apk
|
||||||
|
|
||||||
|
cp ../../bromite/build/RELEASE out/bromite
|
||||||
|
|
||||||
|
- name: Get ninja logs Android
|
||||||
|
if: ${{ github.event.inputs.target_os == 'android' || github.event.inputs.target_os == 'all' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd $WORKSPACE
|
cd $WORKSPACE
|
||||||
$WORKSPACE/ninjatracing/ninjatracing $WORKSPACE/chromium/src/out/bromite/.ninja_log >$WORKSPACE/chromium/src/out/bromite/ninja_log_trace.json
|
$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
|
$WORKSPACE/chromium/src/third_party/catapult/tracing/bin/trace2html $WORKSPACE/chromium/src/out/bromite/ninja_log_trace.json
|
||||||
|
|
||||||
- name: Get goma logs
|
- name: Build Bromite Windows
|
||||||
|
if: ${{ github.event.inputs.target_os == 'win' || github.event.inputs.target_os == 'all' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
# reset proxy env
|
PATH=$WORKSPACE/chromium/src/third_party/llvm-build/Release+Asserts/bin:$WORKSPACE/depot_tools/:/usr/local/go/bin:$WORKSPACE/mtool/bin:$PATH
|
||||||
HTTP_PROXY=
|
cd $WORKSPACE/chromium/src
|
||||||
HTTPS_PROXY=
|
|
||||||
http_proxy=
|
echo "::group::-------- gn gen"
|
||||||
https_proxy=
|
gn gen --args="import(\"/home/lg/working_dir/bromite/build/bromite.gn_args\") target_os = \"win\" $(cat ../../build_args.gni) target_cpu = \"x64\" " out/bromite_win
|
||||||
|
echo "::endgroup::"
|
||||||
[[ "$USEGOMA" = "true" ]] && \
|
|
||||||
wget http://127.0.0.1:8088/logz?INFO -O out/bromite/goma-client.log \
|
echo "::group::-------- gn args"
|
||||||
|| \
|
gn args out/bromite_win/ --list --short
|
||||||
echo Skipped.
|
gn args out/bromite_win/ --list >out/bromite_win/gn_list
|
||||||
|
echo "::endgroup::"
|
||||||
|
|
||||||
|
autoninja -C out/bromite_win chrome
|
||||||
|
|
||||||
|
cp ../../bromite/build/RELEASE out/bromite_win
|
||||||
|
|
||||||
|
- name: Get ninja logs Windows
|
||||||
|
if: ${{ github.event.inputs.target_os == 'win' || github.event.inputs.target_os == 'all' }}
|
||||||
|
shell: bash
|
||||||
|
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
|
||||||
|
|
||||||
- name: Generate breakpad symbols
|
- name: Generate breakpad symbols
|
||||||
|
if: ${{ github.event.inputs.target_os == 'android' || github.event.inputs.target_os == 'all' }}
|
||||||
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
|
||||||
|
|
||||||
echo "::group::-------- generating breakpad symbols"
|
echo "::group::-------- generating breakpad symbols"
|
||||||
autoninja -j $GOMAJOBS -C out/bromite minidump_stackwalk dump_syms
|
autoninja -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=out/bromite/symbols/ --binary=out/bromite/lib.unstripped/libchrome.so \
|
--symbols-dir=out/bromite/symbols/ --binary=out/bromite/lib.unstripped/libchrome.so \
|
||||||
--platform=android --clear --verbose
|
--platform=android --clear --verbose
|
||||||
@@ -336,99 +288,28 @@ jobs:
|
|||||||
cp out/bromite/dump_syms out/bromite/symbols
|
cp out/bromite/dump_syms out/bromite/symbols
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
# - 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
|
|
||||||
|
|
||||||
- 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
|
- name: Generate Supersize data
|
||||||
if: ${{ github.event.inputs.debug == 'false' }}
|
if: ${{ github.event.inputs.debug == 'false' && (github.event.inputs.target_os == 'android' || github.event.inputs.target_os == 'all') }}
|
||||||
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
|
||||||
|
|
||||||
tools/binary_size/supersize archive out/bromite/chrome.size --apk-file out/bromite/apks/ChromePublic.apk -v
|
tools/binary_size/supersize archive out/bromite/chrome.size --apk-file out/bromite/apks/ChromePublic.apk -v
|
||||||
|
|
||||||
- name: Build junit tests
|
- name: Generate clangd index
|
||||||
shell: bash
|
if: ${{ github.event.inputs.debug == 'true' && github.event.inputs.clangd == 'true' }}
|
||||||
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
|
|
||||||
|
|
||||||
- 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
|
|
||||||
|
|
||||||
- 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
|
|
||||||
|
|
||||||
- name: Stop goma
|
|
||||||
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
|
||||||
|
|
||||||
echo "::group::-------- stop goma"
|
test -f out/bromite/bromite.idx || \
|
||||||
[[ "$USEGOMA" = "true" ]] && $WORKSPACE/goma/goma_ctl.py ensure_stop || true
|
cp -r out/bromite out/clangd && \
|
||||||
[[ "$USEGOMA" = "true" ]] && find /tmp/ -maxdepth 1 -name "gomacc*" -print0 | xargs -0 rm || true
|
gn gen --args="import(\"/home/lg/working_dir/bromite/build/bromite.gn_args\") $(cat ../../build_args.gni) skip_clangd_unsupported_options = true" out/clangd && \
|
||||||
[[ "$USEGOMA" = "true" ]] && rm -rf /tmp/goma_lg/ || true
|
$WORKSPACE/ninja/ninja -C $WORKSPACE/chromium/src/out/clangd -a chrome_public_apk \
|
||||||
echo "::endgroup::"
|
-t compdb cc cxx objc objcxx >$WORKSPACE/chromium/src/out/clangd/compile_commands.json && \
|
||||||
|
/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
|
||||||
|
|
||||||
|
|
||||||
|
117
.github/workflows/release.yaml
vendored
117
.github/workflows/release.yaml
vendored
@@ -17,18 +17,9 @@ on:
|
|||||||
description: 'runner? [dev/ci]'
|
description: 'runner? [dev/ci]'
|
||||||
required: true
|
required: true
|
||||||
default: 'ci'
|
default: 'ci'
|
||||||
debug:
|
|
||||||
description: 'debug? [true/false]'
|
|
||||||
required: true
|
|
||||||
default: 'false'
|
|
||||||
usegoma:
|
|
||||||
description: 'Use goma? [true/false]'
|
|
||||||
required: true
|
|
||||||
default: 'false'
|
|
||||||
|
|
||||||
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
|
||||||
@@ -37,7 +28,7 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
runs-on: ${{ github.event.inputs.type }}
|
runs-on: ${{ github.event.inputs.type }}
|
||||||
env:
|
env:
|
||||||
OUTPUTFILE: /storage/images/${{ github.event.inputs.build }}/${{ github.event.inputs.sha }}
|
OUTPUTFILE: /storage/images/android/${{ github.event.inputs.build }}/${{ github.event.inputs.sha }}
|
||||||
APK: ${{ github.event.inputs.build }}_ChromePublic.apk
|
APK: ${{ github.event.inputs.build }}_ChromePublic.apk
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -48,49 +39,91 @@ jobs:
|
|||||||
BRANCH=$(curl https://github.com/uazo/bromite/branch_commits/$BROMITE_SHA | ./pup -p li.branch:last-child a text{} | xargs)
|
BRANCH=$(curl https://github.com/uazo/bromite/branch_commits/$BROMITE_SHA | ./pup -p li.branch:last-child a text{} | xargs)
|
||||||
echo "BRANCH=$BRANCH" >> $GITHUB_ENV
|
echo "BRANCH=$BRANCH" >> $GITHUB_ENV
|
||||||
|
|
||||||
wget https://github.com/cli/cli/releases/download/v2.4.0/gh_2.4.0_linux_amd64.tar.gz
|
wget https://github.com/cli/cli/releases/download/v2.18.1/gh_2.18.1_linux_amd64.tar.gz
|
||||||
tar xfz gh_2.4.0_linux_amd64.tar.gz
|
tar xfz gh_2.18.1_linux_amd64.tar.gz
|
||||||
|
|
||||||
- name: Checkout 'uazo/buildtools'
|
- name: Checkout 'uazo/buildtools'
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: 'uazo/bromite-buildtools'
|
repository: 'uazo/bromite-buildtools'
|
||||||
#ref: ${{ github.event.inputs.rtag }}
|
|
||||||
path: 'bromite'
|
path: 'bromite'
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Copy artifacts
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
sudo cp ${{ env.OUTPUTFILE }}/apks/ChromePublic.apk ChromePublic.apk
|
|
||||||
sudo chown runner ChromePublic.apk
|
|
||||||
mv ChromePublic.apk $APK
|
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo ${{ secrets.GITHUB_TOKEN }} | gh_2.4.0_linux_amd64/bin/gh auth login --with-token
|
GH=gh_2.18.1_linux_amd64/bin/gh
|
||||||
|
WINOUT=/storage/images/win/x64/$BROMITE_SHA/
|
||||||
cd bromite
|
|
||||||
VERSION=v$(cat ${{ env.OUTPUTFILE }}/RELEASE)-${{ github.event.inputs.build }}
|
VERSION=v$(cat ${{ env.OUTPUTFILE }}/RELEASE)-${{ github.event.inputs.build }}
|
||||||
../gh_2.4.0_linux_amd64/bin/gh release create $VERSION-$BROMITE_SHA \
|
|
||||||
../$APK --notes "" -p
|
|
||||||
|
|
||||||
# - name: Enable proxy on container
|
cd bromite
|
||||||
# shell: bash
|
|
||||||
# run: |
|
GH=gh_2.18.1_linux_amd64/bin/gh
|
||||||
# if ! [[ -z "${HTTP_PROXY}" ]]; then
|
wget https://github.com/cli/cli/releases/download/v2.18.1/gh_2.18.1_linux_amd64.tar.gz
|
||||||
# PROXY_ADDR=http://$(hostname -I | cut -d' ' -f1 | xargs):8118
|
tar xfz gh_2.18.1_linux_amd64.tar.gz
|
||||||
# echo "PROXY_ADDR=$PROXY_ADDR" >> $GITHUB_ENV
|
|
||||||
# sudo iptables -D INPUT -p tcp -s localhost --dport 8118 -j ACCEPT
|
echo ${{ secrets.GITHUB_TOKEN }} | $GH auth login --with-token
|
||||||
# sudo iptables -D INPUT -p tcp --dport 8118 -j DROP
|
|
||||||
# fi
|
echo "\`\`\`" >note
|
||||||
|
echo "this is not the official release of bromite but a test version." >>note
|
||||||
|
echo "you can try it at your own risk." >>note
|
||||||
|
echo "\`\`\`" >>note
|
||||||
|
|
||||||
|
$GH release create $VERSION-$BROMITE_SHA --notes-file note -d
|
||||||
|
|
||||||
|
# android
|
||||||
|
sudo cp ${{ env.OUTPUTFILE }}/apks/ChromePublic.apk ChromePublic.apk
|
||||||
|
sudo chown runner ChromePublic.apk
|
||||||
|
mv ChromePublic.apk $APK
|
||||||
|
echo Uploading $APK
|
||||||
|
$GH release upload $VERSION-$BROMITE_SHA $APK
|
||||||
|
|
||||||
|
echo Uploading chrome.size
|
||||||
|
$GH release upload $VERSION-$BROMITE_SHA $OUTPUTFILE/chrome.size
|
||||||
|
|
||||||
|
echo Uploading arm64_ninja_log_trace.html
|
||||||
|
cp $OUTPUTFILE/ninja_log_trace.html arm64_ninja_log_trace.html
|
||||||
|
$GH release upload $VERSION-$BROMITE_SHA arm64_ninja_log_trace.html
|
||||||
|
|
||||||
|
# windows
|
||||||
|
mkdir chrome-win/
|
||||||
|
cp $WINOUT/*.manifest chrome-win/
|
||||||
|
cp $WINOUT/chrome.dll chrome-win/
|
||||||
|
cp $WINOUT/chrome.exe chrome-win/
|
||||||
|
cp $WINOUT/chrome_100_percent.pak chrome-win/
|
||||||
|
cp $WINOUT/chrome_200_percent.pak chrome-win/
|
||||||
|
cp $WINOUT/chrome_elf.dll chrome-win/
|
||||||
|
cp $WINOUT/chrome_proxy.exe chrome-win/
|
||||||
|
cp $WINOUT/chrome_pwa_launcher.exe chrome-win/
|
||||||
|
cp $WINOUT/chrome_wer.dll chrome-win/
|
||||||
|
cp "/win_sdk/10.0.20348.0/Windows Kits/10/Redist/D3D/x64/d3dcompiler_47.dll" chrome-win/
|
||||||
|
cp $WINOUT/elevation_service.exe chrome-win/
|
||||||
|
cp "$WINOUT/First Run" chrome-win/
|
||||||
|
cp $WINOUT/headless_lib_data.pak chrome-win/
|
||||||
|
cp $WINOUT/icudtl.dat chrome-win/
|
||||||
|
cp $WINOUT/libEGL.dll chrome-win/
|
||||||
|
cp $WINOUT/libGLESv2.dll chrome-win/
|
||||||
|
cp $WINOUT/Logo.png chrome-win/
|
||||||
|
cp $WINOUT/mojo_core.dll chrome-win/
|
||||||
|
cp $WINOUT/notification_helper.exe chrome-win/
|
||||||
|
cp $WINOUT/resources.pak chrome-win/
|
||||||
|
cp $WINOUT/SmallLogo.png chrome-win/
|
||||||
|
cp $WINOUT/snapshot_blob.bin chrome-win/
|
||||||
|
cp $WINOUT/VkICD_mock_icd.dll chrome-win/
|
||||||
|
cp $WINOUT/VkLayer_khronos_validation.dll chrome-win/
|
||||||
|
cp $WINOUT/vk_swiftshader.dll chrome-win/
|
||||||
|
cp $WINOUT/vulkan-1.dll chrome-win/
|
||||||
|
cp -r $WINOUT/locales chrome-win/locales
|
||||||
|
|
||||||
|
zip -r chrome-win.zip chrome-win/
|
||||||
|
|
||||||
|
echo Uploading chrome-win.zip
|
||||||
|
$GH release upload $VERSION-$BROMITE_SHA chrome-win.zip
|
||||||
|
|
||||||
|
TIMESTAMP=$(date +%s -r chrome-win.zip)
|
||||||
|
echo >updateurl.txt "browser=chromium;os=windows;architecture=64-bit;timestamp=$TIMESTAMP;editor=uazo;channel=stable;repository=https://github.com/uazo/bromite-buildtools/releases;download=https://github.com/uazo/bromite-buildtools/releases/latest/download/chrome-win.zip;version=$(cat $WINOUT/RELEASE);revision=1;commit=$BROMITE_SHA"
|
||||||
|
$GH release upload $VERSION-$BROMITE_SHA updateurl.txt
|
||||||
|
|
||||||
|
$GH release edit $VERSION-$BROMITE_SHA -t $VERSION-$BROMITE_SHA
|
||||||
|
$GH release edit $VERSION-$BROMITE_SHA --draft=false
|
||||||
|
|
||||||
# - name: Release build ${{ github.event.inputs.build }}/${{ github.event.inputs.sha }}
|
|
||||||
# uses: softprops/action-gh-release@v1
|
|
||||||
# with:
|
|
||||||
# draft: true
|
|
||||||
# body: Apk for ${{ env.APK }} sha ${{ github.event.inputs.sha }}
|
|
||||||
# files: ${{ env.APK }}
|
|
||||||
# env:
|
|
||||||
# HTTP_PROXY: ${{ env.PROXY_ADDR }}
|
|
||||||
|
39
README.md
39
README.md
@@ -1,3 +1,42 @@
|
|||||||
# bromite-buildtools
|
# bromite-buildtools
|
||||||
|
|
||||||
this repo contains my build machine and some scripts I use for Bromite development. the ci uses a modified version of the gihub runner (avaiable [here](https://github.com/uazo/runner)) and use [sysbox](https://github.com/nestybox/sysbox) to improve security. it also contains everything you need to use a self-hosted modified version of [goma](https://github.com/uazo/goma-server) for a multi-machine build
|
this repo contains my build machine and some scripts I use for Bromite development. the ci uses a modified version of the gihub runner (avaiable [here](https://github.com/uazo/runner)) and use [sysbox](https://github.com/nestybox/sysbox) to improve security. it also contains everything you need to use a self-hosted modified version of [goma](https://github.com/uazo/goma-server) for a multi-machine build
|
||||||
|
|
||||||
|
### Setting-up
|
||||||
|
|
||||||
|
1. Prepare folders
|
||||||
|
|
||||||
|
```
|
||||||
|
cd ~ && mkdir gh-runner
|
||||||
|
cd gh-runner && mkdir docker-inner
|
||||||
|
SYSBOX_UID=$(cat /etc/subuid | grep sysbox | cut -d : -f 2)
|
||||||
|
sudo chown $SYSBOX_UID:$SYSBOX_UID docker-inner/
|
||||||
|
|
||||||
|
mkdir /storage
|
||||||
|
sudo chown $SYSBOX_UID:$SYSBOX_UID /storage
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Clone this repo
|
||||||
|
3. Prepare `.env`
|
||||||
|
|
||||||
|
```
|
||||||
|
cd bromite-buildtools/images/github-runner/
|
||||||
|
cp .env.example .env
|
||||||
|
```
|
||||||
|
|
||||||
|
4. Edit `.env` file
|
||||||
|
|
||||||
|
```
|
||||||
|
RUNNER_NAME=pd-gh-runner
|
||||||
|
GITHUB_PERSONAL_TOKEN=<git-token>
|
||||||
|
GITHUB_OWNER=uazo
|
||||||
|
GITHUB_REPOSITORY=bromite-buildtools
|
||||||
|
RUNNER_LABELS=dev
|
||||||
|
ALLOWEDAUTHORSLIST=uazo
|
||||||
|
```
|
||||||
|
|
||||||
|
5. Start the runner
|
||||||
|
```
|
||||||
|
cd bromite-buildtools/images/github-runner/
|
||||||
|
./start-runner.sh
|
||||||
|
```
|
||||||
|
@@ -18,15 +18,11 @@ for patch in $ALLPATCHS_E; do
|
|||||||
|
|
||||||
if [ -z "$PATCH_FILE" ]
|
if [ -z "$PATCH_FILE" ]
|
||||||
then
|
then
|
||||||
#git -C ~/chromium/src/ show -s $patch
|
|
||||||
PATCH_FILE=$(git -C ~/chromium/src/ show -s $patch | tail -n 1)
|
PATCH_FILE=$(git -C ~/chromium/src/ show -s $patch | tail -n 1)
|
||||||
if [[ "$PATCH_FILE" != *".patch" ]]; then
|
if [[ "$PATCH_FILE" != *".patch" ]]; then
|
||||||
PATCH_FILE=$NO_NAME.patch
|
PATCH_FILE=00$(git -C ~/chromium/src/ show -s $patch | head -n 5 | tail -n 1 | xargs | tr " " - | tr [:punct:] -).patch
|
||||||
NO_NAME=$NO_NAME.1
|
echo New Patch: ${PATCH_FILE}
|
||||||
echo No Name ${NO_NAME}, press return
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
read -n 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bash ~/bromite-buildtools/export-single-patch.sh $patch $PATCH_FILE
|
bash ~/bromite-buildtools/export-single-patch.sh $patch $PATCH_FILE
|
||||||
|
@@ -16,6 +16,9 @@ for patch in $ALLPATCHS_E; do
|
|||||||
if [[ "$PATCH_FILE" == *"Automated-domain-substitution"* ]]; then
|
if [[ "$PATCH_FILE" == *"Automated-domain-substitution"* ]]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
if [[ -z "$PATCH_FILE" ]]; then
|
||||||
|
PATCH_FILE=00$(git -C ~/chromium/src/ show -s $patch | head -n 5 | tail -n 1 | xargs | tr " " - | tr [:punct:] -).patch
|
||||||
|
fi
|
||||||
|
|
||||||
echo $PATCH_FILE >>~/bromite/build/patches-new/patch-list
|
echo $PATCH_FILE >>~/bromite/build/patches-new/patch-list
|
||||||
|
|
||||||
|
@@ -16,16 +16,29 @@ fi
|
|||||||
git -C ~/chromium/src/ format-patch -1 --keep-subject --stdout --full-index --zero-commit --no-signature $patch >~/bromite/build/patches-new/$PATCH_FILE
|
git -C ~/chromium/src/ format-patch -1 --keep-subject --stdout --full-index --zero-commit --no-signature $patch >~/bromite/build/patches-new/$PATCH_FILE
|
||||||
echo " exported"
|
echo " exported"
|
||||||
|
|
||||||
|
CHANGE_REF=""
|
||||||
while read line; do
|
while read line; do
|
||||||
#echo $line
|
for i in {1..5}
|
||||||
if [[ "$line" == index* ]]; then
|
do
|
||||||
next_line=$(grep -A1 "${line}" ~/bromite/build/patches-new/$PATCH_FILE | tail -n 1 )
|
if [[ "$line" == index* ]]; then
|
||||||
if [[ "$next_line" != "GIT binary patch" ]]; then
|
read next_line
|
||||||
sed -i "/^$line/d" ~/bromite/build/patches-new/$PATCH_FILE
|
if [[ "$next_line" != "GIT binary patch" ]]; then
|
||||||
|
CHANGE_REF=${CHANGE_REF}"/^${line}/d;"
|
||||||
|
break
|
||||||
|
else
|
||||||
|
line=$next_line
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
break
|
||||||
fi
|
fi
|
||||||
fi
|
done
|
||||||
done <~/bromite/build/patches-new/$PATCH_FILE
|
done <~/bromite/build/patches-new/$PATCH_FILE
|
||||||
|
|
||||||
|
if [ "$CHANGE_REF" ]
|
||||||
|
then
|
||||||
|
sed -i "$CHANGE_REF" ~/bromite/build/patches-new/$PATCH_FILE
|
||||||
|
fi
|
||||||
sed -i '/^From 0000000000000000000000000000000000000000/d' ~/bromite/build/patches-new/$PATCH_FILE
|
sed -i '/^From 0000000000000000000000000000000000000000/d' ~/bromite/build/patches-new/$PATCH_FILE
|
||||||
sed -i '/^FILE:/d' ~/bromite/build/patches-new/$PATCH_FILE
|
sed -i '/^FILE:/d' ~/bromite/build/patches-new/$PATCH_FILE
|
||||||
sed -i '/^ mode change/d' ~/bromite/build/patches-new/$PATCH_FILE
|
sed -i '/^ mode change/d' ~/bromite/build/patches-new/$PATCH_FILE
|
||||||
|
@@ -2,6 +2,11 @@ ARG BROMITE_SHA
|
|||||||
|
|
||||||
FROM uazo/bromite:$BROMITE_SHA
|
FROM uazo/bromite:$BROMITE_SHA
|
||||||
|
|
||||||
|
ARG HTTP_PROXY
|
||||||
|
ENV HTTP_PROXY=$HTTP_PROXY
|
||||||
|
ENV HTTPS_PROXY=$HTTP_PROXY
|
||||||
|
ENV https_proxy=$HTTP_PROXY
|
||||||
|
|
||||||
USER lg
|
USER lg
|
||||||
WORKDIR /home/lg/working_dir
|
WORKDIR /home/lg/working_dir
|
||||||
|
|
||||||
|
@@ -1,35 +1,42 @@
|
|||||||
|
|
||||||
declare_args() {
|
declare_args() {
|
||||||
_is_debug_build = ""
|
_is_debug_build = ""
|
||||||
target_cpu = "x64"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_is_debug_build = getenv("TARGET_ISDEBUG")
|
|
||||||
|
|
||||||
not_needed(["_target_build", "_is_debug_build"])
|
not_needed(["_target_build", "_is_debug_build"])
|
||||||
|
|
||||||
if(getenv("TARGET_CPU") != "") {
|
if(getenv("TARGET_CPU") != "") {
|
||||||
target_cpu = getenv("TARGET_CPU")
|
target_cpu = getenv("TARGET_CPU")
|
||||||
}
|
}
|
||||||
# print("Target " + target_cpu)
|
|
||||||
|
|
||||||
enable_kythe_annotations = true
|
if (target_os == "android") {
|
||||||
# clang_use_chrome_plugins = false
|
enable_kythe_annotations = true
|
||||||
chrome_public_manifest_package = "org.bromite.bromite.dev"
|
chrome_public_manifest_package = "org.bromite.bromite.dev"
|
||||||
|
|
||||||
if(_is_debug_build == "true") {
|
_is_debug_build = getenv("TARGET_ISDEBUG")
|
||||||
# print("Debug build on")
|
if(_is_debug_build == "true") {
|
||||||
is_debug = true
|
# print("Debug build on")
|
||||||
is_official_build = false
|
is_debug = true
|
||||||
dcheck_always_on = true
|
is_official_build = false
|
||||||
symbol_level = 1
|
dcheck_always_on = true
|
||||||
strip_debug_info = false
|
symbol_level = 1
|
||||||
generate_linker_map = false
|
strip_debug_info = false
|
||||||
|
generate_linker_map = false
|
||||||
|
|
||||||
|
# since is_cfi require use_thin_lto
|
||||||
|
# but not work in debug mode
|
||||||
|
is_cfi = false # disable it
|
||||||
|
use_cfi_cast = false # disable it
|
||||||
|
} else {
|
||||||
|
generate_linker_map = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (target_os == "win") {
|
||||||
|
target_cpu = "x64"
|
||||||
|
symbol_level = 0
|
||||||
|
use_large_pdbs = true
|
||||||
|
|
||||||
# since is_cfi require use_thin_lto
|
|
||||||
# but not work in debug mode
|
|
||||||
is_cfi = false # disable it
|
is_cfi = false # disable it
|
||||||
use_cfi_cast = false # disable it
|
use_cfi_cast = false # disable it
|
||||||
} else {
|
|
||||||
generate_linker_map = true
|
|
||||||
}
|
}
|
||||||
|
@@ -5,9 +5,18 @@ FROM uazo/chromium:$VERSION
|
|||||||
ARG BROMITE_SHA
|
ARG BROMITE_SHA
|
||||||
ENV BROMITE_SHA=$BROMITE_SHA
|
ENV BROMITE_SHA=$BROMITE_SHA
|
||||||
|
|
||||||
|
ARG HTTP_PROXY
|
||||||
|
ENV HTTP_PROXY=$HTTP_PROXY
|
||||||
|
ENV HTTPS_PROXY=$HTTP_PROXY
|
||||||
|
ENV https_proxy=$HTTP_PROXY
|
||||||
|
|
||||||
#USER lg
|
#USER lg
|
||||||
WORKDIR /home/lg/working_dir
|
WORKDIR /home/lg/working_dir
|
||||||
|
|
||||||
|
RUN sudo chown lg /etc/apt/apt.conf.d/proxy.conf
|
||||||
|
RUN sudo echo "Acquire::http::Proxy \"$HTTP_PROXY\";" >/etc/apt/apt.conf.d/proxy.conf
|
||||||
|
RUN sudo apt-get update
|
||||||
|
|
||||||
COPY apply-bromite-patches.sh .
|
COPY apply-bromite-patches.sh .
|
||||||
|
|
||||||
RUN sudo chmod +x ./apply-bromite-patches.sh && \
|
RUN sudo chmod +x ./apply-bromite-patches.sh && \
|
||||||
|
@@ -16,13 +16,14 @@ RUN dpkg --add-architecture i386
|
|||||||
|
|
||||||
RUN apt-get update &&\
|
RUN apt-get update &&\
|
||||||
DEBIAN_FRONTEND=noninteractive \
|
DEBIAN_FRONTEND=noninteractive \
|
||||||
apt-get -f -y install sudo lsb-release cl-base64 bash wget apt-utils python sed tzdata build-essential lib32gcc-9-dev
|
apt-get -f -y install sudo lsb-release cl-base64 bash wget apt-utils python sed tzdata build-essential lib32gcc-9-dev g++-multilib
|
||||||
|
|
||||||
ENV user lg
|
ENV user lg
|
||||||
|
|
||||||
RUN useradd -m -d /home/${user} ${user} && \
|
RUN useradd -m -d /home/${user} ${user} && \
|
||||||
chown -R ${user} /home/${user} && \
|
chown -R ${user} /home/${user} && \
|
||||||
adduser ${user} sudo && \
|
adduser ${user} sudo && \
|
||||||
|
chmod 4755 /usr/bin/sudo && \
|
||||||
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
||||||
USER ${user}
|
USER ${user}
|
||||||
|
|
||||||
@@ -31,18 +32,13 @@ USER ${user}
|
|||||||
|
|
||||||
WORKDIR /home/${user}
|
WORKDIR /home/${user}
|
||||||
|
|
||||||
RUN wget https://chromium.googlesource.com/chromium/src/+/refs/tags/$VERSION/build/install-build-deps.sh?format=TEXT -O install-build-deps.sh.base64 \
|
RUN wget https://raw.githubusercontent.com/chromium/chromium/$VERSION/build/install-build-deps.sh \
|
||||||
&& \
|
&& \
|
||||||
wget https://chromium.googlesource.com/chromium/src/+/refs/tags/$VERSION/build/install-build-deps-android.sh?format=TEXT -O install-build-deps-android.sh.base64 \
|
wget https://raw.githubusercontent.com/chromium/chromium/$VERSION/build/install-build-deps-android.sh \
|
||||||
&& \
|
&& \
|
||||||
base64 -d install-build-deps.sh.base64 >install-build-deps.sh && \
|
|
||||||
base64 -d install-build-deps-android.sh.base64 >install-build-deps-android.sh && \
|
|
||||||
sed -i 's/snapcraft/wget/' install-build-deps.sh && \
|
sed -i 's/snapcraft/wget/' install-build-deps.sh && \
|
||||||
chmod +x ./install-build-deps.sh && \
|
chmod +x ./install-build-deps.sh && \
|
||||||
chmod +x ./install-build-deps-android.sh && \
|
chmod +x ./install-build-deps-android.sh && \
|
||||||
sudo ./install-build-deps.sh --no-prompt --lib32 --no-chromeos-fonts && \
|
sudo ./install-build-deps.sh --no-prompt --lib32 --no-chromeos-fonts && \
|
||||||
sudo ./install-build-deps-android.sh --no-prompt
|
sudo ./install-build-deps-android.sh --no-prompt
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,57 +1,60 @@
|
|||||||
diff --git a/gclient_scm.py b/gclient_scm.py
|
diff --git a/gclient_scm.py b/gclient_scm.py
|
||||||
|
index f58c07a8..c8409726 100644
|
||||||
--- a/gclient_scm.py
|
--- a/gclient_scm.py
|
||||||
+++ b/gclient_scm.py
|
+++ b/gclient_scm.py
|
||||||
@@ -1012,28 +1012,35 @@ class GitWrapper(SCMWrapper):
|
@@ -1137,31 +1137,29 @@ class GitWrapper(SCMWrapper):
|
||||||
gclient_utils.safe_makedirs(parent_dir)
|
clone_cmd.append(url)
|
||||||
|
|
||||||
template_dir = None
|
template_dir = None
|
||||||
+ use_fetch = False
|
+ use_fetch = False
|
||||||
+
|
+
|
||||||
+ tmp_dir = tempfile.mkdtemp(
|
+ tmp_dir = tempfile.mkdtemp(
|
||||||
+ prefix='_gclient_%s_' % os.path.basename(self.checkout_path),
|
+ prefix='_gclient_%s_' % os.path.basename(self.checkout_path),
|
||||||
+ dir=parent_dir)
|
+ dir=parent_dir)
|
||||||
+
|
+
|
||||||
if hasattr(options, 'no_history') and options.no_history:
|
if hasattr(options, 'no_history') and options.no_history:
|
||||||
if gclient_utils.IsGitSha(revision):
|
if gclient_utils.IsGitSha(revision):
|
||||||
# In the case of a subproject, the pinned sha is not necessarily the
|
- # In the case of a subproject, the pinned sha is not necessarily the
|
||||||
# head of the remote branch (so we can't just use --depth=N). Instead,
|
- # head of the remote branch (so we can't just use --depth=N). Instead,
|
||||||
# we tell git to fetch all the remote objects from SHA..HEAD by means of
|
- # we tell git to fetch all the remote objects from SHA..HEAD by means
|
||||||
# a template git dir which has a 'shallow' file pointing to the sha.
|
- # of a template git dir which has a 'shallow' file pointing to the
|
||||||
- template_dir = tempfile.mkdtemp(
|
- # sha.
|
||||||
- prefix='_gclient_gittmp_%s' % os.path.basename(self.checkout_path),
|
- template_dir = tempfile.mkdtemp(prefix='_gclient_gittmp_%s' %
|
||||||
- dir=parent_dir)
|
- os.path.basename(self.checkout_path),
|
||||||
- self._Run(['init', '--bare', template_dir], options, cwd=self._root_dir)
|
- dir=parent_dir)
|
||||||
- with open(os.path.join(template_dir, 'shallow'), 'w') as template_file:
|
- self._Run(['init', '--bare', template_dir],
|
||||||
- template_file.write(revision)
|
- options,
|
||||||
- clone_cmd.append('--template=' + template_dir)
|
- cwd=self._root_dir)
|
||||||
+ self._Run(['init', tmp_dir], options, cwd=self._root_dir)
|
- with open(os.path.join(template_dir, 'shallow'),
|
||||||
|
- 'w') as template_file:
|
||||||
|
- template_file.write(revision)
|
||||||
|
- clone_cmd.append('--template=' + template_dir)
|
||||||
|
+ self._Run(['init', tmp_dir], options, cwd=self._root_dir)
|
||||||
+
|
+
|
||||||
+ self._Run(['-C', tmp_dir, 'remote', 'add', 'origin', url], options, cwd=self._root_dir)
|
+ self._Run(['-C', tmp_dir, 'remote', 'add', 'origin', url], options, cwd=self._root_dir)
|
||||||
+
|
+
|
||||||
+ clone_cmd = cfg + ['-C', tmp_dir, 'fetch', '--progress']
|
+ clone_cmd = cfg + ['-C', tmp_dir, 'fetch', '--progress']
|
||||||
+ clone_cmd.append('--depth=1')
|
+ clone_cmd.append('--depth=1')
|
||||||
+ clone_cmd.append(url)
|
+ clone_cmd.append(url)
|
||||||
+ clone_cmd.append(revision)
|
+ clone_cmd.append(revision)
|
||||||
+ use_fetch = True
|
+ use_fetch = True
|
||||||
else:
|
else:
|
||||||
# Otherwise, we're just interested in the HEAD. Just use --depth.
|
# Otherwise, we're just interested in the HEAD. Just use --depth.
|
||||||
clone_cmd.append('--depth=1')
|
clone_cmd.append('--depth=1')
|
||||||
|
|
||||||
- tmp_dir = tempfile.mkdtemp(
|
- tmp_dir = tempfile.mkdtemp(prefix='_gclient_%s_' %
|
||||||
- prefix='_gclient_%s_' % os.path.basename(self.checkout_path),
|
- os.path.basename(self.checkout_path),
|
||||||
- dir=parent_dir)
|
- dir=parent_dir)
|
||||||
try:
|
|
||||||
- clone_cmd.append(tmp_dir)
|
- clone_cmd.append(tmp_dir)
|
||||||
+ if use_fetch == False:
|
+ if use_fetch == False:
|
||||||
+ clone_cmd.append(tmp_dir)
|
+ clone_cmd.append(tmp_dir)
|
||||||
+
|
|
||||||
if self.print_outbuf:
|
try:
|
||||||
print_stdout = True
|
self._Run(clone_cmd,
|
||||||
filter_fn = None
|
@@ -1452,6 +1450,9 @@ class GitWrapper(SCMWrapper):
|
||||||
@@ -1328,6 +1335,9 @@ class GitWrapper(SCMWrapper):
|
|
||||||
if refspec:
|
if refspec:
|
||||||
fetch_cmd.append(refspec)
|
fetch_cmd.append(refspec)
|
||||||
|
|
||||||
+ if hasattr(options, 'no_history') and options.no_history:
|
+ if hasattr(options, 'no_history') and options.no_history:
|
||||||
+ fetch_cmd.append('--depth=1')
|
+ fetch_cmd.append('--depth=1')
|
||||||
+
|
+
|
||||||
|
@@ -22,21 +22,26 @@ echo -e ${RED} -------- download chromium repo ${NC}
|
|||||||
mkdir ./chromium
|
mkdir ./chromium
|
||||||
cd ./chromium
|
cd ./chromium
|
||||||
|
|
||||||
|
export DEPOT_TOOLS_UPDATE=0
|
||||||
|
|
||||||
gclient root
|
gclient root
|
||||||
|
|
||||||
mkdir ./src
|
mkdir ./src
|
||||||
cd ./src
|
cd ./src
|
||||||
|
|
||||||
git init
|
#CHR_SOURCE=https://chromium.googlesource.com/chromium/src.git
|
||||||
git remote add origin https://chromium.googlesource.com/chromium/src.git
|
CHR_SOURCE=https://github.com/chromium/chromium.git
|
||||||
|
|
||||||
git fetch --depth 2 https://chromium.googlesource.com/chromium/src.git +refs/tags/$VERSION:chromium_$VERSION
|
git init
|
||||||
|
git remote add origin $CHR_SOURCE
|
||||||
|
|
||||||
|
git fetch --depth 2 $CHR_SOURCE +refs/tags/$VERSION:chromium_$VERSION
|
||||||
git checkout $VERSION
|
git checkout $VERSION
|
||||||
VERSION_SHA=$( git show-ref -s $VERSION | head -n1 )
|
VERSION_SHA=$( git show-ref -s $VERSION | head -n1 )
|
||||||
|
|
||||||
echo >../.gclient "solutions = ["
|
echo >../.gclient "solutions = ["
|
||||||
echo >>../.gclient " { \"name\" : 'src',"
|
echo >>../.gclient " { \"name\" : 'src',"
|
||||||
echo >>../.gclient " \"url\" : 'https://chromium.googlesource.com/chromium/src.git@$VERSION_SHA',"
|
echo >>../.gclient " \"url\" : '$CHR_SOURCE@$VERSION_SHA',"
|
||||||
echo >>../.gclient " \"deps_file\" : 'DEPS',"
|
echo >>../.gclient " \"deps_file\" : 'DEPS',"
|
||||||
echo >>../.gclient " \"managed\" : True,"
|
echo >>../.gclient " \"managed\" : True,"
|
||||||
echo >>../.gclient " \"custom_deps\" : {"
|
echo >>../.gclient " \"custom_deps\" : {"
|
||||||
@@ -68,3 +73,16 @@ gclient runhooks
|
|||||||
|
|
||||||
echo -e ${RED} -------- download objdump ${NC}
|
echo -e ${RED} -------- download objdump ${NC}
|
||||||
tools/clang/scripts/update.py --package=objdump
|
tools/clang/scripts/update.py --package=objdump
|
||||||
|
|
||||||
|
echo -e ${RED} -------- build rc ${NC}
|
||||||
|
cd build/toolchain/win/rc
|
||||||
|
git clone -q https://github.com/nico/hack
|
||||||
|
cd hack/res
|
||||||
|
|
||||||
|
../../../../../../third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ \
|
||||||
|
-std=c++14 rc.cc -Wall \
|
||||||
|
-Wno-c++11-narrowing -O2 -fno-rtti -fno-exceptions -DNDEBUG \
|
||||||
|
-o rc-linux64 -fuse-ld=lld -target x86_64-unknown-linux-gnu
|
||||||
|
cd ../../../../../../
|
||||||
|
cp build/toolchain/win/rc/hack/res/rc-linux64 build/toolchain/win/rc/linux64/rc
|
||||||
|
|
||||||
|
@@ -37,6 +37,7 @@ do
|
|||||||
-v $GHRUNNERHOME/tmp/forward-proxy:/tmp/forward-proxy:rw \
|
-v $GHRUNNERHOME/tmp/forward-proxy:/tmp/forward-proxy:rw \
|
||||||
-v $GHRUNNERHOME/redis:/redis:rw \
|
-v $GHRUNNERHOME/redis:/redis:rw \
|
||||||
-v $GHRUNNERHOME/var/run:/var/run \
|
-v $GHRUNNERHOME/var/run:/var/run \
|
||||||
|
-v /casefold:/win_sdk \
|
||||||
--network none \
|
--network none \
|
||||||
--device=/dev/kvm \
|
--device=/dev/kvm \
|
||||||
uazo/github-runner
|
uazo/github-runner
|
||||||
|
17
images/image-downloader/check_and_download.sh
Normal file
17
images/image-downloader/check_and_download.sh
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
while true
|
||||||
|
do
|
||||||
|
|
||||||
|
VERSION=$(curl -s https://omahaproxy.appspot.com/all.json | jq '.[] | select(.os | contains("win64")) | .versions[] | select(.channel | contains("stable")) | .current_version' | xargs)
|
||||||
|
echo Check for $VERSION
|
||||||
|
|
||||||
|
docker -H unix:///home/$USER/gh-runner-ci/var/run/docker.sock pull uazo/build-deps:$VERSION
|
||||||
|
docker -H unix:///home/$USER/gh-runner-ci/var/run/docker.sock pull uazo/chromium:$VERSION
|
||||||
|
|
||||||
|
docker -H unix:///home/$USER/gh-runner/var/run/docker.sock pull uazo/build-deps:$VERSION
|
||||||
|
docker -H unix:///home/$USER/gh-runner/var/run/docker.sock pull uazo/chromium:$VERSION
|
||||||
|
|
||||||
|
sleep 1h
|
||||||
|
|
||||||
|
done
|
Reference in New Issue
Block a user