Skip to content

Commit

Permalink
Merge pull request azwhikaru#39 from sakshiagrwal/main
Browse files Browse the repository at this point in the history
deprecated
  • Loading branch information
azwhikaru authored Jan 4, 2023
2 parents 915605c + 0e5391f commit 0111de4
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions .github/workflows/Recovery Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ on:
jobs:
build:
if: github.event.repository.owner.id == github.event.sender.id
runs-on: ubuntu-18.04
# You can use either of the ubuntu-18.04 or ubuntu-20.04 runner
runs-on: ubuntu-20.04
steps:
- name: Display Run Parameters
run: |
Expand Down Expand Up @@ -88,11 +87,6 @@ jobs:
ssh-private-key: |
${{ secrets.SSH_PRIVATE_KEY }}
- name: Set variables
run: |
echo "::set-output name=date::$(date +%F)"
id: var

- name: Install repo
run: |
mkdir ~/bin
Expand All @@ -104,7 +98,7 @@ jobs:
run: |
mkdir workspace
cd workspace
echo "::set-output name=pwd::$(pwd)"
echo "workspace-folder=$(pwd)" >> $GITHUB_OUTPUT
git config --global user.name "Captain Throwback"
git config --global user.email "captainthrowback@hotmail.com"
repo init --depth=1 -u ${{ github.event.inputs.MANIFEST_URL }} -b ${{ github.event.inputs.MANIFEST_BRANCH }}
Expand All @@ -118,15 +112,15 @@ jobs:
- name: Clone device tree
run: |
git clone ${{ github.event.inputs.DEVICE_TREE_URL }} -b ${{ github.event.inputs.DEVICE_TREE_BRANCH }} ./${{ github.event.inputs.DEVICE_PATH }}
working-directory: ${{ steps.pwd.outputs.pwd }}
working-directory: ${{ steps.pwd.outputs.workspace-folder }}

- name: Clone common tree
if: |
github.event.inputs.COMMON_TREE_URL != null
&& github.event.inputs.COMMON_PATH != null
run: |
git clone ${{ github.event.inputs.COMMON_TREE_URL }} -b ${{ github.event.inputs.DEVICE_TREE_BRANCH }} ./${{ github.event.inputs.COMMON_PATH }}
working-directory: ${{ steps.pwd.outputs.pwd }}
working-directory: ${{ steps.pwd.outputs.workspace-folder }}

- name: Check Build Tree
uses: haya14busa/action-cond@v1
Expand All @@ -140,27 +134,20 @@ jobs:
run: |
bash ${GITHUB_WORKSPACE}/scripts/convert.sh ${{ github.event.inputs.DEVICE_PATH }}/${{ steps.buildtree.outputs.value }}.dependencies
repo sync -j$(nproc --all)
working-directory: ${{ steps.pwd.outputs.pwd }}
working-directory: ${{ steps.pwd.outputs.workspace-folder }}
continue-on-error: true

- name: Set Swap Space
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 12

- name: Check Build Branch
if: ${{ github.event.inputs.MANIFEST_BRANCH == 'twrp-12.1' }}
run: |
source build/envsetup.sh
repopick 5405 5540
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)
working-directory: ${{ steps.pwd.outputs.pwd }}
working-directory: ${{ steps.pwd.outputs.workspace-folder }}

- name: Upload to Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 0111de4

Please sign in to comment.