Merge pull request #39 from sakshiagrwal/main

deprecated
This commit is contained in:
azwhikaru 2023-01-04 23:22:46 +08:00 committed by GitHub
commit 0111de4458
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,8 +45,7 @@ on:
jobs: jobs:
build: build:
if: github.event.repository.owner.id == github.event.sender.id if: github.event.repository.owner.id == github.event.sender.id
runs-on: ubuntu-18.04 runs-on: ubuntu-20.04
# You can use either of the ubuntu-18.04 or ubuntu-20.04 runner
steps: steps:
- name: Display Run Parameters - name: Display Run Parameters
run: | run: |
@ -88,11 +87,6 @@ jobs:
ssh-private-key: | ssh-private-key: |
${{ secrets.SSH_PRIVATE_KEY }} ${{ secrets.SSH_PRIVATE_KEY }}
- name: Set variables
run: |
echo "::set-output name=date::$(date +%F)"
id: var
- name: Install repo - name: Install repo
run: | run: |
mkdir ~/bin mkdir ~/bin
@ -104,7 +98,7 @@ jobs:
run: | run: |
mkdir workspace mkdir workspace
cd 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.name "Captain Throwback"
git config --global user.email "captainthrowback@hotmail.com" git config --global user.email "captainthrowback@hotmail.com"
repo init --depth=1 -u ${{ github.event.inputs.MANIFEST_URL }} -b ${{ github.event.inputs.MANIFEST_BRANCH }} repo init --depth=1 -u ${{ github.event.inputs.MANIFEST_URL }} -b ${{ github.event.inputs.MANIFEST_BRANCH }}
@ -118,7 +112,7 @@ jobs:
- name: Clone device tree - name: Clone device tree
run: | run: |
git clone ${{ github.event.inputs.DEVICE_TREE_URL }} -b ${{ github.event.inputs.DEVICE_TREE_BRANCH }} ./${{ github.event.inputs.DEVICE_PATH }} 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 - name: Clone common tree
if: | if: |
@ -126,7 +120,7 @@ jobs:
&& github.event.inputs.COMMON_PATH != null && github.event.inputs.COMMON_PATH != null
run: | run: |
git clone ${{ github.event.inputs.COMMON_TREE_URL }} -b ${{ github.event.inputs.DEVICE_TREE_BRANCH }} ./${{ github.event.inputs.COMMON_PATH }} 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 - name: Check Build Tree
uses: haya14busa/action-cond@v1 uses: haya14busa/action-cond@v1
@ -140,7 +134,7 @@ jobs:
run: | run: |
bash ${GITHUB_WORKSPACE}/scripts/convert.sh ${{ github.event.inputs.DEVICE_PATH }}/${{ steps.buildtree.outputs.value }}.dependencies bash ${GITHUB_WORKSPACE}/scripts/convert.sh ${{ github.event.inputs.DEVICE_PATH }}/${{ steps.buildtree.outputs.value }}.dependencies
repo sync -j$(nproc --all) repo sync -j$(nproc --all)
working-directory: ${{ steps.pwd.outputs.pwd }} working-directory: ${{ steps.pwd.outputs.workspace-folder }}
continue-on-error: true continue-on-error: true
- name: Set Swap Space - name: Set Swap Space
@ -148,19 +142,12 @@ jobs:
with: with:
swap-size-gb: 12 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 - name: Building recovery
run: | run: |
source build/envsetup.sh source build/envsetup.sh
export ALLOW_MISSING_DEPENDENCIES=true 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 ${{ 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 - name: Upload to Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1