Update and rename build_bromite.yaml to build_bromite_dev.yaml

This commit is contained in:
uazo 2022-01-17 10:50:16 +01:00 committed by GitHub
parent 5c93ab7d6c
commit 265acb6dd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
name: Build x86 name: Build Bromite
permissions: permissions:
actions: none actions: none
checks: none checks: none
@ -18,10 +18,22 @@ on:
description: 'uazo/bromite SHA' description: 'uazo/bromite SHA'
required: true required: true
default: '76745fde6ed75542f005ea5528f486df41c56da4' default: '76745fde6ed75542f005ea5528f486df41c56da4'
build:
description: 'arm64/x64'
required: true
default: 'x64'
type:
description: 'dev/ci'
required: true
default: 'dev'
debug:
description: 'true/false'
required: true
default: 'true'
usegoma: usegoma:
description: 'Use goma?' description: 'Use goma?'
required: true required: true
default: 'true' default: 'false'
env: env:
BROMITE_SHA: ${{ github.event.inputs.sha }} BROMITE_SHA: ${{ github.event.inputs.sha }}
@ -32,7 +44,7 @@ env:
jobs: jobs:
check_images: check_images:
runs-on: self-hosted runs-on: ${{ github.event.inputs.type }}
steps: steps:
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -140,7 +152,7 @@ jobs:
docker tag uazo/bromite-build:$BROMITE_SHA uazo/bromite-build:build docker tag uazo/bromite-build:$BROMITE_SHA uazo/bromite-build:build
build: build:
runs-on: self-hosted runs-on: ${{ github.event.inputs.type }}
needs: check_images needs: check_images
if: success() if: success()
timeout-minutes: 720 timeout-minutes: 720
@ -174,8 +186,9 @@ jobs:
KYTHE_OUTPUT_DIRECTORY: /home/lg/working_dir/chromium/src/out/bromite/kythe KYTHE_OUTPUT_DIRECTORY: /home/lg/working_dir/chromium/src/out/bromite/kythe
# compile in debug mode # compile in debug mode
TARGET_ISDEBUG: true TARGET_ISDEBUG: true
TARGET_CPU: ${{ github.event.inputs.build }}
volumes: volumes:
- /storage/images/${{ github.event.inputs.sha }}:/home/lg/working_dir/chromium/src/out/bromite - /storage/images/${{ github.event.inputs.build }}/${{ github.event.inputs.sha }}:/home/lg/working_dir/chromium/src/out/bromite
- /tmp/proxy:/tmp/proxy - /tmp/proxy:/tmp/proxy
steps: steps:
@ -284,6 +297,12 @@ jobs:
|| \ || \
autoninja -C out/bromite chrome_public_apk autoninja -C out/bromite chrome_public_apk
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
files: /home/lg/working_dir/chromium/src/out/bromite/apks/ChromePublic.apk
- name: Get ninja logs - name: Get ninja logs
shell: bash shell: bash
run: | run: |