Compare commits

...

8 Commits

Author SHA1 Message Date
uazo
813cea7bd5
Update win_sdk 10.0.22621.0 2023-05-20 14:44:56 +03:00
uazo
0c4f152b89
Update build_bromite_dev.yaml 2023-05-09 02:43:53 -08:00
uazo
2493688ed2
increase timeout to 20 hours 2023-05-09 01:42:51 -05:00
uazo
2e590285d4
Fix release name 2023-05-02 11:32:48 +04:00
uazo
248956d7ab
Add android x64 2023-05-02 10:59:00 +04:00
Carmelo Messina
7d8f0cc0d5 add buildx 2023-05-01 17:08:28 +02:00
uazo
789763aa43
Update build_bromite_dev.yaml 2023-04-21 00:28:02 -06:00
uazo
bfc4344c08
Merge pull request #154 from uazo/uazo-patch-3
Update build_bromite_dev.yaml
2023-04-20 08:01:31 -04:00
5 changed files with 31 additions and 26 deletions

View File

@ -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: 720 timeout-minutes: 1200
container: container:
image: uazo/bromite-build:build image: uazo/bromite-build:build
@ -306,7 +306,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' }} if: ${{ (github.event.inputs.target_os == 'android' || github.event.inputs.target_os == 'all') && (github.event.inputs.build == 'arm64' || github.event.inputs.build == '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 +323,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') }} 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') }}
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 +332,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.debug == 'true' && github.event.inputs.clangd == 'true' }} if: ${{ 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

View File

@ -9,10 +9,6 @@ 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
@ -22,14 +18,13 @@ 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/arm64/${{ github.event.inputs.build }}/${{ github.event.inputs.sha }} OUTPUTFILE_ARM64: /storage/images/android/${{ github.event.inputs.sha }}/false/arm64/
APK: ${{ github.event.inputs.build }}_ChromePublic.apk OUTPUTFILE_X64: /storage/images/android/${{ github.event.inputs.sha }}/false/x64/
steps: steps:
- name: Prepare container - name: Prepare container
@ -54,7 +49,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)-${{ github.event.inputs.build }} VERSION=v$(cat ${{ env.OUTPUTFILE_ARM64 }}/RELEASE)
cd bromite cd bromite
@ -71,12 +66,17 @@ jobs:
$GH release create $VERSION-$BROMITE_SHA --notes-file note -d $GH release create $VERSION-$BROMITE_SHA --notes-file note -d
# android # android arm64
sudo cp ${{ env.OUTPUTFILE_ARM64 }}/apks/ChromePublic.apk ChromePublic.apk sudo cp ${{ env.OUTPUTFILE_ARM64 }}/apks/ChromePublic.apk arm64_ChromePublic.apk
sudo chown runner ChromePublic.apk sudo chown runner arm64_ChromePublic.apk
mv ChromePublic.apk $APK echo Uploading arm64_ChromePublic
echo Uploading $APK $GH release upload $VERSION-$BROMITE_SHA arm64_ChromePublic.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.20348.0/Windows Kits/10/Redist/D3D/x64/d3dcompiler_47.dll" chrome-win/ cp "/win_sdk/10.0.22621.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/

View File

@ -109,10 +109,15 @@ RUN chmod +x ./patched/runsvc.sh /usr/local/bin/startup.sh
USER runner USER runner
ENV HTTP_PROXY="http://172.18.0.1:8118" RUN wget https://github.com/docker/buildx/releases/download/v0.10.4/buildx-v0.10.4.linux-amd64 && \
ENV HTTPS_PROXY="http://172.18.0.1:8118" mkdir -p /home/runner/.docker/cli-plugins && \
ENV http_proxy="http://172.18.0.1:8118" mv buildx-v0.10.4.linux-amd64 /home/runner/.docker/cli-plugins/docker-buildx && \
ENV https_proxy="http://172.18.0.1:8118" chmod +x /home/runner/.docker/cli-plugins/docker-buildx
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

View File

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

View File

@ -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.1 uazo/github-runner:2.303.2
echo "You can stop now" echo "You can stop now"
sleep 5s sleep 5s