Skip to content

Commit

Permalink
Add option to repoick Gerrit patches
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainThrowback committed Nov 29, 2023
1 parent 703e656 commit 29d8414
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/Recovery Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ on:
description: 'DEVICE_NAME'
required: true
default: 'I003D'
MAKEFILE_NAME:
description: 'MAKEFILE_NAME'
required: true
default: 'twrp_I003D'
REPOPICK_PATCHES:
description: 'REPOPICK_PATCHES (Gerrit commit numbers separated by a space to be included in the build)'
type: string
required: false
BUILD_TARGET:
description: 'BUILD_TARGET'
required: true
Expand All @@ -57,7 +57,6 @@ jobs:
echo "Device Tree Branch: ${{ github.event.inputs.DEVICE_TREE_BRANCH }}"
echo "Device Path: ${{ github.event.inputs.DEVICE_PATH }}"
echo "Device Name: ${{ github.event.inputs.DEVICE_NAME }}"
echo "Makefile Name: ${{ github.event.inputs.MAKEFILE_NAME }}"
echo "Build Target: ${{ github.event.inputs.BUILD_TARGET }}.img"
echo "::endgroup::"
Expand Down Expand Up @@ -152,11 +151,18 @@ jobs:
cd /usr/bin
sudo ln -sf python2 python
- name: Repopick Gerrit patches
if: github.event.inputs.REPOPICK_PATCHES != null
run: |
source build/envsetup.sh
repopick ${{ github.event.inputs.REPOPICK_PATCHES }}
working-directory: ${{ steps.pwd.outputs.pwd }}

- name: Building recovery
run: |
source build/envsetup.sh
export ALLOW_MISSING_DEPENDENCIES=true
lunch ${{ github.event.inputs.MAKEFILE_NAME }}-eng && make clean && make ${{ github.event.inputs.BUILD_TARGET }}image -j$(nproc --all)
lunch ${{ steps.buildtree.outputs.value }}_${{ github.event.inputs.DEVICE_NAME }}-eng && make clean && make ${{ github.event.inputs.BUILD_TARGET }}image -j$(nproc --all)
working-directory: ${{ steps.pwd.outputs.workspace-folder }}

- name: Upload to Release
Expand Down

0 comments on commit 29d8414

Please sign in to comment.