Compare commits
1 Commits
master
...
uazo-patch
Author | SHA1 | Date | |
---|---|---|---|
|
90bc55ca85 |
16
.github/workflows/build_bromite_dev.yaml
vendored
16
.github/workflows/build_bromite_dev.yaml
vendored
@ -158,7 +158,7 @@ jobs:
|
|||||||
runs-on: ${{ github.event.inputs.type }}
|
runs-on: ${{ github.event.inputs.type }}
|
||||||
needs: check_images
|
needs: check_images
|
||||||
if: success()
|
if: success()
|
||||||
timeout-minutes: 1200
|
timeout-minutes: 720
|
||||||
|
|
||||||
container:
|
container:
|
||||||
image: uazo/bromite-build:build
|
image: uazo/bromite-build:build
|
||||||
@ -179,8 +179,8 @@ jobs:
|
|||||||
TARGET_ISDEBUG: ${{ github.event.inputs.debug }}
|
TARGET_ISDEBUG: ${{ github.event.inputs.debug }}
|
||||||
TARGET_OS: ${{ github.event.inputs.target_os }}
|
TARGET_OS: ${{ github.event.inputs.target_os }}
|
||||||
volumes:
|
volumes:
|
||||||
- /storage/images/android/${{ github.event.inputs.sha }}/${{ github.event.inputs.debug }}/arm64:/home/lg/working_dir/chromium/src/out/bromite
|
- /storage/images/android/arm64/${{ github.event.inputs.build }}/${{ github.event.inputs.sha }}:/home/lg/working_dir/chromium/src/out/bromite
|
||||||
- /storage/images/android/${{ github.event.inputs.sha }}/${{ github.event.inputs.debug }}/x64:/home/lg/working_dir/chromium/src/out/bromite_x64
|
- /storage/images/android/x64/${{ github.event.inputs.build }}/${{ github.event.inputs.sha }}:/home/lg/working_dir/chromium/src/out/bromite_x64
|
||||||
- /storage/images/win/x64/${{ github.event.inputs.sha }}:/home/lg/working_dir/chromium/src/out/bromite_win
|
- /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
|
- /win_sdk:/win_sdk
|
||||||
@ -208,10 +208,6 @@ jobs:
|
|||||||
sudo chown lg chromium/src/out &&
|
sudo chown lg chromium/src/out &&
|
||||||
sudo chown lg chromium/src/out/bromite_win
|
sudo chown lg chromium/src/out/bromite_win
|
||||||
|
|
||||||
test -d chromium/src/out/bromite_x64 || sudo mkdir -p chromium/src/out/bromite_x64 && \
|
|
||||||
sudo chown lg chromium/src/out &&
|
|
||||||
sudo chown lg chromium/src/out/bromite_x64
|
|
||||||
|
|
||||||
# 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
|
||||||
|
|
||||||
@ -306,7 +302,7 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
- name: Generate breakpad symbols arm64
|
- name: Generate breakpad symbols arm64
|
||||||
if: ${{ (github.event.inputs.target_os == 'android' || github.event.inputs.target_os == 'all') && (github.event.inputs.build == 'arm64' || github.event.inputs.build == 'all') }}
|
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
|
||||||
@ -323,7 +319,7 @@ jobs:
|
|||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
- name: Generate Supersize data
|
- name: Generate Supersize data
|
||||||
if: ${{ github.event.inputs.debug == 'false' && (github.event.inputs.target_os == 'android' || github.event.inputs.target_os == 'all') && (github.event.inputs.build == 'arm64' || github.event.inputs.build == 'all') }}
|
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
|
||||||
@ -332,7 +328,7 @@ jobs:
|
|||||||
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: Generate clangd index
|
- name: Generate clangd index
|
||||||
if: ${{ github.event.inputs.clangd == 'true' }}
|
if: ${{ github.event.inputs.debug == 'true' && github.event.inputs.clangd == 'true' }}
|
||||||
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
|
||||||
|
30
.github/workflows/release.yaml
vendored
30
.github/workflows/release.yaml
vendored
@ -9,6 +9,10 @@ on:
|
|||||||
description: 'uazo/bromite SHA'
|
description: 'uazo/bromite SHA'
|
||||||
required: true
|
required: true
|
||||||
default: '0a8ff322d6e9d738f7b2fa52618b178081bd100d'
|
default: '0a8ff322d6e9d738f7b2fa52618b178081bd100d'
|
||||||
|
build:
|
||||||
|
description: 'arch [arm64/x64]'
|
||||||
|
required: true
|
||||||
|
default: 'arm64'
|
||||||
type:
|
type:
|
||||||
description: 'runner? [dev/ci]'
|
description: 'runner? [dev/ci]'
|
||||||
required: true
|
required: true
|
||||||
@ -18,13 +22,14 @@ env:
|
|||||||
BROMITE_SHA: ${{ github.event.inputs.sha }}
|
BROMITE_SHA: ${{ github.event.inputs.sha }}
|
||||||
REMOVEDOCKERSUPPORT: true
|
REMOVEDOCKERSUPPORT: true
|
||||||
USELOCALIMAGE: true
|
USELOCALIMAGE: true
|
||||||
|
GOMAJOBS: 60
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ${{ github.event.inputs.type }}
|
runs-on: ${{ github.event.inputs.type }}
|
||||||
env:
|
env:
|
||||||
OUTPUTFILE_ARM64: /storage/images/android/${{ github.event.inputs.sha }}/false/arm64/
|
OUTPUTFILE_ARM64: /storage/images/android/arm64/${{ github.event.inputs.build }}/${{ github.event.inputs.sha }}
|
||||||
OUTPUTFILE_X64: /storage/images/android/${{ github.event.inputs.sha }}/false/x64/
|
APK: ${{ github.event.inputs.build }}_ChromePublic.apk
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Prepare container
|
- name: Prepare container
|
||||||
@ -49,7 +54,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
GH=gh_2.18.1_linux_amd64/bin/gh
|
GH=gh_2.18.1_linux_amd64/bin/gh
|
||||||
WINOUT=/storage/images/win/x64/$BROMITE_SHA/
|
WINOUT=/storage/images/win/x64/$BROMITE_SHA/
|
||||||
VERSION=v$(cat ${{ env.OUTPUTFILE_ARM64 }}/RELEASE)
|
VERSION=v$(cat ${{ env.OUTPUTFILE_ARM64 }}/RELEASE)-${{ github.event.inputs.build }}
|
||||||
|
|
||||||
cd bromite
|
cd bromite
|
||||||
|
|
||||||
@ -66,17 +71,12 @@ jobs:
|
|||||||
|
|
||||||
$GH release create $VERSION-$BROMITE_SHA --notes-file note -d
|
$GH release create $VERSION-$BROMITE_SHA --notes-file note -d
|
||||||
|
|
||||||
# android arm64
|
# android
|
||||||
sudo cp ${{ env.OUTPUTFILE_ARM64 }}/apks/ChromePublic.apk arm64_ChromePublic.apk
|
sudo cp ${{ env.OUTPUTFILE_ARM64 }}/apks/ChromePublic.apk ChromePublic.apk
|
||||||
sudo chown runner arm64_ChromePublic.apk
|
sudo chown runner ChromePublic.apk
|
||||||
echo Uploading arm64_ChromePublic
|
mv ChromePublic.apk $APK
|
||||||
$GH release upload $VERSION-$BROMITE_SHA arm64_ChromePublic.apk
|
echo Uploading $APK
|
||||||
|
$GH release upload $VERSION-$BROMITE_SHA $APK
|
||||||
# android x64
|
|
||||||
sudo cp ${{ env.OUTPUTFILE_X64 }}/apks/ChromePublic.apk x64_ChromePublic.apk
|
|
||||||
sudo chown runner x64_ChromePublic.apk
|
|
||||||
echo Uploading x64_ChromePublic
|
|
||||||
$GH release upload $VERSION-$BROMITE_SHA x64_ChromePublic.apk
|
|
||||||
|
|
||||||
echo Uploading chrome.size
|
echo Uploading chrome.size
|
||||||
test $VERSION-$BROMITE_SHA $OUTPUTFILE_ARM64/chrome.size && \
|
test $VERSION-$BROMITE_SHA $OUTPUTFILE_ARM64/chrome.size && \
|
||||||
@ -98,7 +98,7 @@ jobs:
|
|||||||
cp $WINOUT/chrome_proxy.exe chrome-win/
|
cp $WINOUT/chrome_proxy.exe chrome-win/
|
||||||
cp $WINOUT/chrome_pwa_launcher.exe chrome-win/
|
cp $WINOUT/chrome_pwa_launcher.exe chrome-win/
|
||||||
cp $WINOUT/chrome_wer.dll chrome-win/
|
cp $WINOUT/chrome_wer.dll chrome-win/
|
||||||
cp "/win_sdk/10.0.22621.0/Windows Kits/10/Redist/D3D/x64/d3dcompiler_47.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/elevation_service.exe chrome-win/
|
||||||
cp "$WINOUT/First Run" chrome-win/
|
cp "$WINOUT/First Run" chrome-win/
|
||||||
cp $WINOUT/headless_lib_data.pak chrome-win/
|
cp $WINOUT/headless_lib_data.pak chrome-win/
|
||||||
|
@ -109,15 +109,10 @@ RUN chmod +x ./patched/runsvc.sh /usr/local/bin/startup.sh
|
|||||||
|
|
||||||
USER runner
|
USER runner
|
||||||
|
|
||||||
RUN wget https://github.com/docker/buildx/releases/download/v0.10.4/buildx-v0.10.4.linux-amd64 && \
|
ENV HTTP_PROXY="http://172.18.0.1:8118"
|
||||||
mkdir -p /home/runner/.docker/cli-plugins && \
|
ENV HTTPS_PROXY="http://172.18.0.1:8118"
|
||||||
mv buildx-v0.10.4.linux-amd64 /home/runner/.docker/cli-plugins/docker-buildx && \
|
ENV http_proxy="http://172.18.0.1:8118"
|
||||||
chmod +x /home/runner/.docker/cli-plugins/docker-buildx
|
ENV https_proxy="http://172.18.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://127.0.0.1:8118"
|
|
||||||
ENV https_proxy="http://127.0.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";
|
||||||
|
@ -40,7 +40,7 @@ do
|
|||||||
-v /casefold:/win_sdk \
|
-v /casefold:/win_sdk \
|
||||||
--network none \
|
--network none \
|
||||||
--device=/dev/kvm \
|
--device=/dev/kvm \
|
||||||
uazo/github-runner:2.303.2
|
uazo/github-runner:2.303.1
|
||||||
|
|
||||||
echo "You can stop now"
|
echo "You can stop now"
|
||||||
sleep 5s
|
sleep 5s
|
||||||
|
Loading…
x
Reference in New Issue
Block a user