Compare commits
134 Commits
v100.0.489
...
v111.0.556
Author | SHA1 | Date | |
---|---|---|---|
|
42a26fd1db | ||
|
b0e084df8e | ||
|
b438ab71d9 | ||
|
6b6e64d2a8 | ||
|
3ed76fc160 | ||
|
eb0447a0b5 | ||
|
dda7cece8f | ||
|
d26cceccdf | ||
|
5c005551b8 | ||
|
4ca3d33584 | ||
|
775ca2f448 | ||
|
1dd51fda9b | ||
|
45836ce3ae | ||
|
e7381936fe | ||
|
c3b8d405e1 | ||
|
5d0b72827e | ||
|
31dd53a306 | ||
|
0f16965303 | ||
|
ae23aa6a50 | ||
|
f8ca8ac409 | ||
|
e67921d3be | ||
|
2ed940ac6b | ||
|
8d94379ee0 | ||
|
880500e350 | ||
|
c2d9bd63c6 | ||
|
704b14ac14 | ||
|
99970aa83e | ||
|
2be587466f | ||
|
e6d5e6dbb0 | ||
|
6322e96a90 | ||
|
c7cfc1326e | ||
|
1e70336bec | ||
|
652a8977a1 | ||
|
7d8ef4250e | ||
|
7708decfcc | ||
|
46966bdcef | ||
|
4ff08df321 | ||
|
967b46c94f | ||
|
73d719f6db | ||
|
bf5dbce4be | ||
|
f3d1b4cc04 | ||
|
3d61c83219 | ||
|
99fc6289da | ||
|
946df3e35d | ||
|
c4f7fedb9a | ||
|
259d916fd8 | ||
|
a8ed4b9dd2 | ||
|
7a79901e2a | ||
|
d9d39e238b | ||
|
312a3dd9cc | ||
|
99c7eed766 | ||
|
6bf80440e1 | ||
|
7686c97268 | ||
|
a4abb945ef | ||
|
5258713cc6 | ||
|
8e00d11fc9 | ||
|
04c2891f63 | ||
|
4923c1bd3d | ||
|
ce6a6a21bd | ||
|
1a36777b32 | ||
|
dfe7692d80 | ||
|
e0ae9cdad0 | ||
|
a713e49b62 | ||
|
911e10dec7 | ||
|
9b0002223d | ||
|
b6c627c29f | ||
|
405be869fd | ||
|
aa646fed5d | ||
|
960c195a73 | ||
|
0622111b34 | ||
|
ed3fb656cb | ||
|
7b14f5ba33 | ||
|
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 | ||
|
729ad9b695 | ||
|
ffc028a0e9 |
131
.github/workflows/build-images.yaml
vendored
131
.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,103 @@ permissions:
|
|||||||
statuses: none
|
statuses: none
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_dispatch:
|
||||||
tags:
|
inputs:
|
||||||
- 'v*'
|
version:
|
||||||
|
description: 'chromium version'
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
|
schedule:
|
||||||
|
- cron: '0 1 * * *'
|
||||||
|
|
||||||
|
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 google-chrome-stable \
|
||||||
|
firefox mysql-server-core-8.0 mono-devel podman \
|
||||||
|
powershell
|
||||||
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
|
||||||
|
|
||||||
|
cd bromite-buildtools
|
||||||
|
echo ${{ secrets.GITHUB_TOKEN }} | $GH auth login --with-token
|
||||||
|
$GH issue create -t "$VERSION: new stable chromium version" -b ""
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
300
.github/workflows/build_bromite_dev.yaml
vendored
300
.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:
|
||||||
@@ -112,14 +114,14 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Building bromite container ${{ env.BROMITE_SHA }}
|
- name: Building bromite container ${{ env.VERSION }}-${{ env.BROMITE_SHA }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
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
|
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
|
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 BROMITE_SHA=$BROMITE_SHA \
|
||||||
--build-arg VERSION=$VERSION \
|
--build-arg VERSION=$VERSION \
|
||||||
--build-arg HTTP_PROXY="$PROXY_ADDR" \
|
--build-arg HTTP_PROXY="$PROXY_ADDR" \
|
||||||
@@ -127,15 +129,16 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Building bromite-build container ${{ env.BROMITE_SHA }}
|
- name: Building bromite-build container ${{ env.VERSION }}-${{ env.BROMITE_SHA }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
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
|
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
|
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 BROMITE_SHA=$BROMITE_SHA \
|
||||||
|
--build-arg VERSION=$VERSION \
|
||||||
--build-arg HTTP_PROXY="$PROXY_ADDR" \
|
--build-arg HTTP_PROXY="$PROXY_ADDR" \
|
||||||
--no-cache \
|
--no-cache \
|
||||||
bromite-buildtools/images/bromite-build/.
|
bromite-buildtools/images/bromite-build/.
|
||||||
@@ -149,47 +152,38 @@ jobs:
|
|||||||
if [ $IS_PRESENT -eq "0" ]; then
|
if [ $IS_PRESENT -eq "0" ]; then
|
||||||
docker rmi uazo/bromite-build:build
|
docker rmi uazo/bromite-build:build
|
||||||
fi
|
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:
|
build:
|
||||||
runs-on: ${{ github.event.inputs.type }}
|
runs-on: ${{ github.event.inputs.type }}
|
||||||
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 +199,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 +215,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 +289,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
|
||||||
|
|
||||||
|
|
||||||
|
138
.github/workflows/check_git_apply.yaml
vendored
Normal file
138
.github/workflows/check_git_apply.yaml
vendored
Normal file
@@ -0,0 +1,138 @@
|
|||||||
|
name: Check git apply
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
rtag:
|
||||||
|
description: 'uazo/bromite TAG or COMMIT'
|
||||||
|
required: true
|
||||||
|
default: ''
|
||||||
|
branch:
|
||||||
|
description: 'uazo/bromite BRANCH'
|
||||||
|
required: true
|
||||||
|
default: ''
|
||||||
|
|
||||||
|
env:
|
||||||
|
GITHUB_SHA: ${{ github.event.inputs.rtag }}
|
||||||
|
BROMITE_SHA: ${{ github.event.inputs.rtag }}
|
||||||
|
USEINTERNALNETWORK: false # CUSTOM RUNNER: create the docker network as internal
|
||||||
|
REMOVEDOCKERSUPPORT: false # CUSTOM RUNNER: remove sharing of docker socket
|
||||||
|
https_proxy: http://172.18.0.1:8118
|
||||||
|
http_proxy: http://172.18.0.1:8118
|
||||||
|
jobs:
|
||||||
|
get-git-apply:
|
||||||
|
runs-on: ci
|
||||||
|
container:
|
||||||
|
image: uazo/build-deps:latest
|
||||||
|
env:
|
||||||
|
GITHUB_SHA: ${{ github.event.inputs.rtag }}
|
||||||
|
USELOCALIMAGE: true # CUSTOM RUNNER: permit use of local images
|
||||||
|
REMOVEDOCKERSUPPORT: false # CUSTOM RUNNER: remove sharing of docker socket
|
||||||
|
volumes:
|
||||||
|
- /tmp/proxy:/tmp/proxy
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Prepare container
|
||||||
|
run: |
|
||||||
|
sudo chown lg /etc/apt/apt.conf.d/proxy.conf
|
||||||
|
sudo chown lg .
|
||||||
|
sudo echo Acquire::http::Proxy \"http://172.18.0.1:8118\"\; >/etc/apt/apt.conf.d/proxy.conf
|
||||||
|
#export HTTPS_PROXY=http://172.18.0.1:8118
|
||||||
|
#export HTTP_PROXY=http://172.18.0.1:8118
|
||||||
|
#export http_proxy=http://172.18.0.1:8118
|
||||||
|
#export https_proxy=http://172.18.0.1:8118
|
||||||
|
|
||||||
|
sudo chmod 777 /__w/_temp
|
||||||
|
|
||||||
|
wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
|
||||||
|
sudo dpkg -i packages-microsoft-prod.deb
|
||||||
|
rm packages-microsoft-prod.deb
|
||||||
|
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y wget unzip tar sed dos2unix patchutils wiggle curl nano aspnetcore-runtime-6.0
|
||||||
|
|
||||||
|
wget https://github.com/uazo/superpatch/releases/latest/download/SuperPatchUtils.tar.gz
|
||||||
|
tar xfz SuperPatchUtils.tar.gz
|
||||||
|
rm SuperPatchUtils.tar.gz
|
||||||
|
|
||||||
|
git clone https://github.com/uazo/bromite-buildtools
|
||||||
|
|
||||||
|
#wget https://github.com/ericchiang/pup/releases/download/v0.4.0/pup_v0.4.0_linux_amd64.zip
|
||||||
|
#unzip pup_v0.4.0_linux_amd64.zip
|
||||||
|
#rm pup_v0.4.0_linux_amd64.zip
|
||||||
|
#BRANCH=$(curl https://github.com/uazo/bromite/branch_commits/$GITHUB_SHA | ./pup -p li.branch:last-child a text{})
|
||||||
|
|
||||||
|
test -d /github/home/.vscode-server || sudo mkdir /github/home/.vscode-server
|
||||||
|
sudo chown lg /github/home/.vscode-server
|
||||||
|
|
||||||
|
- name: Checkout 'uazo/bromite'
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: 'uazo/bromite'
|
||||||
|
ref: ${{ github.event.inputs.rtag }}
|
||||||
|
path: 'bromite'
|
||||||
|
fetch-depth: 1
|
||||||
|
|
||||||
|
- name: Create chromium sources
|
||||||
|
run: |
|
||||||
|
#sleep 2h
|
||||||
|
VERSION=$(cat bromite/build/RELEASE)
|
||||||
|
./bin/SuperPatchUtils bromite $BROMITE_SHA chromium/src
|
||||||
|
|
||||||
|
cd chromium/src
|
||||||
|
git init
|
||||||
|
git config user.email "you@example.com"
|
||||||
|
git config user.name "Your Name"
|
||||||
|
git add .
|
||||||
|
git commit -m $VERSION
|
||||||
|
git tag -a $VERSION -m $VERSION
|
||||||
|
|
||||||
|
- name: Apply patches ${{ github.event.inputs.rtag }}
|
||||||
|
run: |
|
||||||
|
export HOME=$(pwd)
|
||||||
|
cd ~/chromium/src
|
||||||
|
|
||||||
|
export SILENT=true
|
||||||
|
export CGA_REMOTE=true
|
||||||
|
export SKIPAUTOGENERATED=true
|
||||||
|
bash ~/bromite-buildtools/apply-all-patch.sh || sleep 23h || true
|
||||||
|
|
||||||
|
rm -rf ~/bromite/build/patches-new/
|
||||||
|
rm ~/bromite/build/bromite_patches_list_new.txt
|
||||||
|
|
||||||
|
- name: Export patches
|
||||||
|
run: |
|
||||||
|
export HOME=$(pwd)
|
||||||
|
|
||||||
|
cd ~/chromium/src
|
||||||
|
bash ~/bromite-buildtools/export-all-patch.sh
|
||||||
|
|
||||||
|
cd ~/bromite
|
||||||
|
rm -rf build/patches/*
|
||||||
|
mv build/patches-new/* build/patches
|
||||||
|
rm -rf build/patches-new/
|
||||||
|
|
||||||
|
- name: Check differences CHANGES=${{ env.CHANGES }}
|
||||||
|
run: |
|
||||||
|
cd bromite
|
||||||
|
CHANGES=0 && git diff --quiet || CHANGES=1
|
||||||
|
|
||||||
|
if [[ CHANGES -eq 1 ]]; then
|
||||||
|
git add build/patches/*.patch
|
||||||
|
git diff --name-only --staged
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Create Pull Request
|
||||||
|
uses: peter-evans/create-pull-request@dcd5fd746d53dd8de555c0f10bca6c35628be47a #v3.12.0
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.BROMITE_PULLS_PAT }}
|
||||||
|
path: bromite
|
||||||
|
base: ${{ github.event.inputs.branch }}
|
||||||
|
add-paths: |
|
||||||
|
build/patches/*.patch
|
||||||
|
commit-message: 'AUTOMATED - git apply results'
|
||||||
|
title: Git apply result for ${{ github.event.inputs.branch }} branch
|
||||||
|
body: ${{ env.MESSAGE }}
|
||||||
|
delete-branch: true
|
||||||
|
branch-suffix: short-commit-hash
|
123
.github/workflows/release.yaml
vendored
123
.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,97 @@ 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.21.1_linux_amd64/bin/gh
|
||||||
# if ! [[ -z "${HTTP_PROXY}" ]]; then
|
wget https://github.com/cli/cli/releases/download/v2.21.1/gh_2.21.1_linux_amd64.tar.gz
|
||||||
# PROXY_ADDR=http://$(hostname -I | cut -d' ' -f1 | xargs):8118
|
tar xfz gh_2.21.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
|
||||||
|
test $VERSION-$BROMITE_SHA $OUTPUTFILE/chrome.size && \
|
||||||
|
$GH release upload $VERSION-$BROMITE_SHA $OUTPUTFILE/chrome.size
|
||||||
|
|
||||||
|
echo Uploading arm64_ninja_log_trace.html
|
||||||
|
test $OUTPUTFILE/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
|
||||||
|
|
||||||
|
#test chrome-win.zip && rm chrome-win.zip
|
||||||
|
zip -r chrome-win.zip chrome-win/
|
||||||
|
|
||||||
|
echo Uploading chrome-win.zip
|
||||||
|
$GH release upload $VERSION-$BROMITE_SHA chrome-win.zip
|
||||||
|
|
||||||
|
# workaround for https://github.com/cli/cli/issues/6599
|
||||||
|
sleep 30s
|
||||||
|
|
||||||
|
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 }}
|
|
||||||
|
90
README.md
90
README.md
@@ -1,3 +1,93 @@
|
|||||||
# 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. Prepare for windows cross build
|
||||||
|
Follow the [instructions](https://chromium.googlesource.com/chromium/src.git/+/HEAD/docs/win_cross.md#if-you_re-not-at-google) to create the zip with the toolchain
|
||||||
|
|
||||||
|
example:
|
||||||
|
```
|
||||||
|
cd path\to\depot_tools\win_toolchain
|
||||||
|
D:\Downloads\depot_tools\win_toolchain> package_from_installed.py --allow_multiple_vs_installs -w 10.0.20348.0 2019
|
||||||
|
```
|
||||||
|
|
||||||
|
create the `/casefold` in the unix host with [casefold attribute](https://unix.stackexchange.com/questions/558977/how-to-enable-new-in-kernel-5-2-case-insensitivity-for-ext4-on-a-given-directory) and unzip the contents into.
|
||||||
|
```
|
||||||
|
~$ ls /casefold/10.0.20348.0/ -la
|
||||||
|
total 36
|
||||||
|
drwxr-xr-x 8 root root 4096 Oct 5 13:20 .
|
||||||
|
drwxr-xr-x 5 root root 4096 Oct 5 13:17 ..
|
||||||
|
drwxr-xr-x 6 root root 4096 Oct 5 13:19 'DIA SDK'
|
||||||
|
drwxr-xr-x 2 root root 4096 Oct 5 13:20 sys32
|
||||||
|
drwxr-xr-x 2 root root 4096 Oct 5 13:20 sys64
|
||||||
|
drwxr-xr-x 2 root root 4096 Oct 5 13:20 sysarm64
|
||||||
|
drwxr-xr-x 5 root root 4096 Oct 5 13:20 VC
|
||||||
|
-rw-rw-rw- 1 root root 5 Sep 26 17:05 VS_VERSION
|
||||||
|
drwxr-xr-x 3 root root 4096 Oct 5 13:20 'Windows Kits'
|
||||||
|
```
|
||||||
|
|
||||||
|
6. Start the runner
|
||||||
|
```
|
||||||
|
cd bromite-buildtools/images/github-runner/
|
||||||
|
./start-runner.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
### Test Android Version
|
||||||
|
|
||||||
|
Simply download latest build on https://github.com/uazo/bromite-buildtools/releases/latest
|
||||||
|
|
||||||
|
### Test Windows Version
|
||||||
|
|
||||||
|
1. Download https://github.com/henrypp/chrlauncher/releases
|
||||||
|
2. Create a `chrlauncher.ini`
|
||||||
|
|
||||||
|
```
|
||||||
|
[chrlauncher]
|
||||||
|
|
||||||
|
# Custom Chromium update URL (string):
|
||||||
|
ChromiumUpdateUrl=https://github.com/uazo/bromite-buildtools/releases/latest/download/updateurl.txt
|
||||||
|
|
||||||
|
# Command line for Chromium (string):
|
||||||
|
# See here: http://peter.sh/experiments/chromium-command-line-switches/
|
||||||
|
ChromiumCommandLine=--user-data-dir=".\User Data" --no-default-browser-check
|
||||||
|
|
||||||
|
# Chromium executable file name (string):
|
||||||
|
ChromiumBinary=chrome.exe
|
||||||
|
|
||||||
|
# Chromium binaries directory (string):
|
||||||
|
# Relative (to chrlauncher directory) or full path (env. variables supported).
|
||||||
|
ChromiumDirectory=.\bin
|
||||||
|
```
|
||||||
|
@@ -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
|
||||||
@@ -41,7 +37,7 @@ for current_file in $(cat $PATCH_LIST); do
|
|||||||
if [[ $current_file =~ ^changed/.* ]]; then
|
if [[ $current_file =~ ^changed/.* ]]; then
|
||||||
mv ~/bromite/build/patches-new/$(basename $current_file) ~/bromite/build/patches-new/changed
|
mv ~/bromite/build/patches-new/$(basename $current_file) ~/bromite/build/patches-new/changed
|
||||||
elif [[ $current_file =~ ^contrib/.* ]]; then
|
elif [[ $current_file =~ ^contrib/.* ]]; then
|
||||||
mv ~/bromite/build/patches-new/$(basename $current_file) ~/bromite/build/patches-new/contrib
|
mv ~/bromite/build/patches-new/$(basename $current_file) ~/bromite/build/patches-new/contrib || true
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@@ -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
|
||||||
|
@@ -1,6 +1,12 @@
|
|||||||
ARG BROMITE_SHA
|
ARG BROMITE_SHA
|
||||||
|
ARG VERSION
|
||||||
|
|
||||||
FROM uazo/bromite:$BROMITE_SHA
|
FROM uazo/bromite:$VERSION-$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,50 @@
|
|||||||
|
|
||||||
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
|
target_os = "android" # fix traffic annotation auditor
|
||||||
chrome_public_manifest_package = "org.bromite.bromite.dev"
|
#enable_kythe_annotations = true
|
||||||
|
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
|
||||||
|
use_relative_vtables_abi = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (target_os == "win") {
|
||||||
|
target_os = "win" # fix traffic annotation auditor
|
||||||
|
target_cpu = "x64"
|
||||||
|
symbol_level = 0
|
||||||
|
use_large_pdbs = true
|
||||||
|
|
||||||
|
enable_pdf = true
|
||||||
|
pdf_is_complete_lib = true
|
||||||
|
enable_plugins = true
|
||||||
|
enable_ppapi = false
|
||||||
|
|
||||||
# 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
|
|
||||||
}
|
}
|
||||||
|
@@ -59,7 +59,7 @@ cd $WORKSPACE/
|
|||||||
git clone https://github.com/ninja-build/ninja.git -b v1.8.2
|
git clone https://github.com/ninja-build/ninja.git -b v1.8.2
|
||||||
cd ninja
|
cd ninja
|
||||||
git apply $WORKSPACE/bromite-buildtools/ninja-one-target-for-compdb.patch
|
git apply $WORKSPACE/bromite-buildtools/ninja-one-target-for-compdb.patch
|
||||||
./configure.py --bootstrap
|
CXX=clang++ ./configure.py --bootstrap
|
||||||
|
|
||||||
echo -e ${RED} -------- download clang indexer ${NC}
|
echo -e ${RED} -------- download clang indexer ${NC}
|
||||||
cd $WORKSPACE/
|
cd $WORKSPACE/
|
||||||
|
@@ -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 dos2unix wiggle
|
||||||
|
|
||||||
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,12 @@ 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 \
|
|
||||||
&& \
|
|
||||||
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 && \
|
|
||||||
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.sh --android --no-prompt --no-chromeos-fonts && \
|
||||||
|
sudo mkdir -p /github/home/.vscode-server && \
|
||||||
|
sudo chown lg /github/home/.vscode-server
|
||||||
|
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
|
||||||
|
@@ -109,10 +109,10 @@ RUN chmod +x ./patched/runsvc.sh /usr/local/bin/startup.sh
|
|||||||
|
|
||||||
USER runner
|
USER runner
|
||||||
|
|
||||||
ENV HTTP_PROXY="http://127.0.0.1:8118"
|
ENV HTTP_PROXY="http://172.18.0.1:8118"
|
||||||
ENV HTTPS_PROXY="http://127.0.0.1:8118"
|
ENV HTTPS_PROXY="http://172.18.0.1:8118"
|
||||||
ENV http_proxy="http://127.0.0.1:8118"
|
ENV http_proxy="http://172.18.0.1:8118"
|
||||||
ENV https_proxy="http://127.0.0.1:8118"
|
ENV https_proxy="http://172.18.0.1:8118"
|
||||||
COPY docker.default /etc/default/docker
|
COPY docker.default /etc/default/docker
|
||||||
COPY proxy.conf /etc/apt/apt.conf.d/proxy.conf
|
COPY proxy.conf /etc/apt/apt.conf.d/proxy.conf
|
||||||
|
|
||||||
|
@@ -1 +1 @@
|
|||||||
Acquire::http::Proxy "http://127.0.0.1:8118";
|
Acquire::http::Proxy "http://172.18.0.1:8118";
|
||||||
|
@@ -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
|
@@ -1,19 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [[ -z "${DOCKER_SOCK}" ]]; then
|
if [[ -z "${INDEX_VERSION}" ]]; then
|
||||||
echo "Please set DOCKER_SOCK env variable"
|
echo "Please set INDEX_VERSION env variable"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "${DEV_CONTAINER}" ]]; then
|
cp /storage/images/android/x64/$INDEX_VERSION/bromite.idx .
|
||||||
echo "Please set DEV_CONTAINER env variable"
|
cp /storage/images/android/x64/$INDEX_VERSION/RELEASE .
|
||||||
exit 1
|
|
||||||
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)
|
|
||||||
DOCKER_BUILDKIT=1 docker build -t uazo/bromite-remote-index:$INDEX_VERSION \
|
DOCKER_BUILDKIT=1 docker build -t uazo/bromite-remote-index:$INDEX_VERSION \
|
||||||
--progress plain \
|
--progress plain \
|
||||||
--no-cache \
|
--no-cache \
|
||||||
|
@@ -73,6 +73,7 @@ index ed004ac8f1fe1a5107db8b1f5c02c4ba957daef4..bbb79da561ddec497863230cd99ffbe9
|
|||||||
+
|
+
|
||||||
int NinjaMain::ToolCompilationDatabase(const Options* options, int argc, char* argv[]) {
|
int NinjaMain::ToolCompilationDatabase(const Options* options, int argc, char* argv[]) {
|
||||||
+ std::vector<Edge*>* edges_to_process = &(state_.edges_);
|
+ std::vector<Edge*>* edges_to_process = &(state_.edges_);
|
||||||
|
+ std::vector<Edge*> user_interested_edges;
|
||||||
+
|
+
|
||||||
+ if (options->user_given_target) {
|
+ if (options->user_given_target) {
|
||||||
+ string err;
|
+ string err;
|
||||||
@@ -83,7 +84,6 @@ index ed004ac8f1fe1a5107db8b1f5c02c4ba957daef4..bbb79da561ddec497863230cd99ffbe9
|
|||||||
+ return 1;
|
+ return 1;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ std::vector<Edge*> user_interested_edges;
|
|
||||||
+ if (!GetAllDependentEdges(user_given_target, &user_interested_edges))
|
+ if (!GetAllDependentEdges(user_given_target, &user_interested_edges))
|
||||||
+ return 1;
|
+ return 1;
|
||||||
+ edges_to_process = &user_interested_edges;
|
+ edges_to_process = &user_interested_edges;
|
||||||
|
Reference in New Issue
Block a user