Compare commits

...

76 Commits

Author SHA1 Message Date
uazo
0f16965303 Update release.yaml 2022-11-26 05:36:06 -04:00
uazo
ae23aa6a50 workaround for ci issue 2022-11-26 05:33:27 -04:00
uazo
f8ca8ac409 Update build-images.yaml 2022-11-22 09:13:49 +02:00
uazo
e67921d3be Update check_git_apply.yaml 2022-11-03 18:26:58 +07:00
uazo
2ed940ac6b Update check_git_apply.yaml 2022-11-03 17:53:31 +07:00
uazo
8d94379ee0 Update check_git_apply.yaml 2022-11-03 17:26:47 +07:00
uazo
880500e350 Update check_git_apply.yaml 2022-11-03 03:33:20 -06:00
uazo
c2d9bd63c6 Update check_git_apply.yaml 2022-11-03 03:32:05 -06:00
uazo
704b14ac14 Update check_git_apply.yaml 2022-11-03 03:15:26 -06:00
uazo
99970aa83e Update check_git_apply.yaml 2022-11-03 03:12:25 -06:00
uazo
2be587466f Update check_git_apply.yaml 2022-11-03 03:09:53 -06:00
uazo
e6d5e6dbb0 Update check_git_apply.yaml 2022-11-03 02:53:45 -06:00
uazo
6322e96a90 Update check_git_apply.yaml 2022-11-03 02:49:55 -06:00
uazo
c7cfc1326e Update check_git_apply.yaml 2022-11-03 02:42:33 -06:00
uazo
1e70336bec Update check_git_apply.yaml 2022-11-03 02:30:52 -06:00
uazo
652a8977a1 Update check_git_apply.yaml 2022-10-28 07:59:40 -08:00
uazo
7d8ef4250e Update check_git_apply.yaml 2022-10-28 07:56:57 -08:00
uazo
7708decfcc Update Dockerfile 2022-10-28 07:55:28 -08:00
uazo
46966bdcef Update proxy.conf 2022-10-28 07:54:59 -08:00
uazo
4ff08df321 Update check_git_apply.yaml 2022-10-28 07:54:09 -08:00
uazo
967b46c94f Update check_git_apply.yaml 2022-10-28 07:48:37 -08:00
uazo
73d719f6db Update check_git_apply.yaml 2022-10-28 07:46:52 -08:00
uazo
bf5dbce4be Update check_git_apply.yaml 2022-10-28 07:44:24 -08:00
uazo
f3d1b4cc04 Update check_git_apply.yaml 2022-10-28 07:42:19 -08:00
uazo
3d61c83219 Update check_git_apply.yaml 2022-10-28 07:37:31 -08:00
uazo
99fc6289da Update check_git_apply.yaml 2022-10-28 07:36:23 -08:00
uazo
946df3e35d Update check_git_apply.yaml 2022-10-28 07:35:12 -08:00
uazo
c4f7fedb9a Update check_git_apply.yaml 2022-10-28 07:16:26 -08:00
uazo
259d916fd8 Update check_git_apply.yaml 2022-10-28 07:15:01 -08:00
uazo
a8ed4b9dd2 Update check_git_apply.yaml 2022-10-28 07:12:46 -08:00
uazo
7a79901e2a Update check_git_apply.yaml 2022-10-28 14:24:11 +00:00
uazo
d9d39e238b Update check_git_apply.yaml 2022-10-28 14:16:11 +00:00
uazo
312a3dd9cc Update check_git_apply.yaml 2022-10-28 14:12:24 +00:00
uazo
99c7eed766 Update check_git_apply.yaml 2022-10-28 14:09:49 +00:00
uazo
6bf80440e1 Update check_git_apply.yaml 2022-10-28 10:18:46 -02:00
uazo
7686c97268 Update check_git_apply.yaml 2022-10-28 10:17:49 -02:00
uazo
a4abb945ef Update check_git_apply.yaml 2022-10-28 10:12:07 -02:00
uazo
5258713cc6 Update check_git_apply.yaml 2022-10-28 09:50:38 -02:00
uazo
8e00d11fc9 Update check_git_apply.yaml 2022-10-28 09:47:37 -02:00
uazo
04c2891f63 Update Dockerfile 2022-10-28 09:41:41 -02:00
uazo
4923c1bd3d Update check_git_apply.yaml 2022-10-28 08:15:11 -02:00
uazo
ce6a6a21bd Update check_git_apply.yaml 2022-10-28 08:10:28 -02:00
uazo
1a36777b32 add proxy 2022-10-28 08:09:01 -02:00
uazo
dfe7692d80 Update check_git_apply.yaml 2022-10-28 08:04:25 -02:00
uazo
e0ae9cdad0 Added dos2unix and wiggle 2022-10-28 08:04:02 -02:00
uazo
a713e49b62 Update check_git_apply.yaml 2022-10-28 08:00:59 -02:00
uazo
911e10dec7 Update check_git_apply.yaml 2022-10-28 07:59:29 -02:00
uazo
9b0002223d enable use of local images 2022-10-28 07:55:11 -02:00
uazo
b6c627c29f Update check_git_apply.yaml 2022-10-28 07:53:31 -02:00
uazo
405be869fd Update check_git_apply.yaml 2022-10-28 07:48:51 -02:00
uazo
aa646fed5d Update check_git_apply.yaml 2022-10-28 07:33:06 -02:00
uazo
960c195a73 Update check_git_apply.yaml 2022-10-28 07:31:08 -02:00
uazo
0622111b34 Create check_git_apply.yaml 2022-10-28 07:08:14 -02:00
uazo
ed3fb656cb fix create issue step 2022-10-26 17:28:49 +11:00
uazo
7b14f5ba33 update instruction for windows cross building 2022-10-22 22:24:30 +07:00
uazo
4432e3bc3b Update build_args.gni 2022-10-21 07:15:27 -08:00
uazo
400575271c fix windows build target 2022-10-21 06:58:53 -08:00
uazo
eed67c45b1 Update release.yaml 2022-10-21 08:18:22 -06:00
uazo
f6ceaa75a8 add logs 2022-10-21 08:01:49 -06:00
uazo
2976fd07ff Update release.yaml 2022-10-21 07:18:36 -06:00
uazo
a880652f08 Update release.yaml 2022-10-21 07:15:15 -06:00
uazo
ac45d8cb17 Update release.yaml 2022-10-21 07:08:53 -06:00
uazo
e22b3b9512 Update build-images.yaml 2022-10-21 06:36:07 -06:00
uazo
e73b4e3c55 Update build-images.yaml 2022-10-21 06:33:15 -06:00
uazo
fd8a710847 Update build-images.yaml 2022-10-21 06:32:19 -06:00
uazo
5bfbb668f4 Rename image-downloader/check_and_download.sh to images/image-downloader/check_and_download.sh 2022-10-21 06:01:36 -06:00
uazo
8bccbc8d51 Create check_and_download.sh 2022-10-21 05:51:10 -06:00
uazo
6a33b40dc0 fix target_cpu for windows 2022-10-21 04:28:39 -06:00
uazo
0500a3879c Update release.yaml 2022-10-21 03:59:39 -06:00
uazo
c515d1a4dc Update release.yaml 2022-10-21 03:43:27 -06:00
uazo
a872a2dee8 fix order 2022-10-20 09:01:05 +02:00
uazo
fdff032db3 add use_large_pdbs = true windows flag 2022-10-20 08:53:37 +02:00
uazo
cf67ee0fea Update Dockerfile 2022-10-17 18:02:31 +02:00
uazo
60ee49376e Update Dockerfile 2022-10-17 17:52:04 +02:00
uazo
a2f4b53004 Update Dockerfile 2022-10-17 17:51:05 +02:00
uazo
6ab623651a Update Dockerfile 2022-10-17 17:42:54 +02:00
12 changed files with 330 additions and 57 deletions

View File

@@ -3,7 +3,7 @@ permissions:
checks: none
contents: none
deployments: none
issues: none
issues: write
packages: none
pull-requests: none
repository-projects: none
@@ -18,10 +18,11 @@ on:
required: false
default: ''
schedule:
- cron: '0 5 * * *'
- cron: '0 1 * * *'
env:
VERSION: ${{ github.event.inputs.version }}
NEW_VERSION: ${{ null }}
name: Builds and pushes tagged image to DockerHub
jobs:
@@ -34,9 +35,9 @@ jobs:
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
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 remove google-cloud-sdk azure-cli google-chrome-stable \
firefox mysql-server-core-8.0 mono-devel podman \
powershell
sudo apt-get autoremove
- name: Checkout repo
@@ -74,6 +75,7 @@ jobs:
bromite-buildtools/images/build-deps/.
docker push uazo/build-deps:$VERSION
echo "NEW_VERSION=$VERSION" >> $GITHUB_ENV
fi
fi
@@ -91,6 +93,21 @@ jobs:
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 ""

View File

@@ -251,7 +251,7 @@ jobs:
cd $WORKSPACE/chromium/src
echo "::group::-------- gn gen"
gn gen --args="import(\"/home/lg/working_dir/bromite/build/bromite.gn_args\") target_cpu = \"x64\" target_os = \"win\" $(cat ../../build_args.gni) " out/bromite_win
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::"
echo "::group::-------- gn args"

138
.github/workflows/check_git_apply.yaml vendored Normal file
View 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

View File

@@ -39,8 +39,8 @@ jobs:
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
wget https://github.com/cli/cli/releases/download/v2.4.0/gh_2.4.0_linux_amd64.tar.gz
tar xfz 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.18.1_linux_amd64.tar.gz
- name: Checkout 'uazo/buildtools'
uses: actions/checkout@v2
@@ -49,19 +49,86 @@ jobs:
path: 'bromite'
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
shell: bash
run: |
echo ${{ secrets.GITHUB_TOKEN }} | gh_2.4.0_linux_amd64/bin/gh auth login --with-token
cd bromite
GH=gh_2.18.1_linux_amd64/bin/gh
WINOUT=/storage/images/win/x64/$BROMITE_SHA/
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
cd bromite
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
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
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

View File

@@ -35,7 +35,31 @@ RUNNER_LABELS=dev
ALLOWEDAUTHORSLIST=uazo
```
5. Start the runner
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

View File

@@ -2,6 +2,11 @@ ARG 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
WORKDIR /home/lg/working_dir

View File

@@ -3,46 +3,40 @@ declare_args() {
_is_debug_build = ""
}
_is_debug_build = getenv("TARGET_ISDEBUG")
not_needed(["_target_build", "_is_debug_build"])
if(getenv("TARGET_CPU") != "") {
target_cpu = getenv("TARGET_CPU")
}
# print("Target " + target_cpu)
enable_kythe_annotations = true
# clang_use_chrome_plugins = false
if (target_os == "android") {
enable_kythe_annotations = true
chrome_public_manifest_package = "org.bromite.bromite.dev"
}
if(_is_debug_build == "true") {
# print("Debug build on")
is_debug = true
is_official_build = false
dcheck_always_on = true
if (target_os == "win") {
symbol_level = 0
use_large_pdbs = true
} else {
_is_debug_build = getenv("TARGET_ISDEBUG")
if(_is_debug_build == "true") {
# print("Debug build on")
is_debug = true
is_official_build = false
dcheck_always_on = true
symbol_level = 1
}
strip_debug_info = false
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 {
if (target_os == "android") {
generate_linker_map = true
}
if (target_os == "win") {
# 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
is_cfi = false # disable it
use_cfi_cast = false # disable it
}

View File

@@ -5,9 +5,18 @@ FROM uazo/chromium:$VERSION
ARG 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
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 .
RUN sudo chmod +x ./apply-bromite-patches.sh && \

View File

@@ -16,7 +16,7 @@ RUN dpkg --add-architecture i386
RUN apt-get update &&\
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 g++-multilib
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
@@ -40,5 +40,7 @@ RUN wget https://raw.githubusercontent.com/chromium/chromium/$VERSION/build/inst
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-android.sh --no-prompt
sudo ./install-build-deps-android.sh --no-prompt && \
sudo mkdir -p /github/home/.vscode-server && \
sudo chown lg /github/home/.vscode-server

View File

@@ -109,10 +109,10 @@ RUN chmod +x ./patched/runsvc.sh /usr/local/bin/startup.sh
USER runner
ENV HTTP_PROXY="http://127.0.0.1:8118"
ENV HTTPS_PROXY="http://127.0.0.1:8118"
ENV http_proxy="http://127.0.0.1:8118"
ENV https_proxy="http://127.0.0.1:8118"
ENV HTTP_PROXY="http://172.18.0.1:8118"
ENV HTTPS_PROXY="http://172.18.0.1:8118"
ENV http_proxy="http://172.18.0.1:8118"
ENV https_proxy="http://172.18.0.1:8118"
COPY docker.default /etc/default/docker
COPY proxy.conf /etc/apt/apt.conf.d/proxy.conf

View File

@@ -1 +1 @@
Acquire::http::Proxy "http://127.0.0.1:8118";
Acquire::http::Proxy "http://172.18.0.1:8118";

View 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