Skip to content

Commit

Permalink
Merge pull request #1 from cd-Crypton/main
Browse files Browse the repository at this point in the history
update
  • Loading branch information
imbroglius authored Sep 12, 2024
2 parents 568128d + eec1181 commit a557d94
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/Recovery-Builder-PBRP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ on:
jobs:
build:
name: Build PBRP by ${{ github.actor }}
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
if: github.event.repository.owner.id == github.event.sender.id
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -71,18 +71,16 @@ jobs:
- name: Set Swap Space
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 12
swap-size-gb: 24

- name: Prepare the environment
run: |
sudo apt update
sudo apt -y upgrade
sudo apt -y install gperf gcc-multilib gcc-10-multilib g++-multilib g++-10-multilib libc6-dev lib32ncurses5-dev x11proto-core-dev libx11-dev tree lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc bc ccache lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk3.0-gtk3-dev libxml2 lzop pngcrush schedtool squashfs-tools imagemagick libbz2-dev lzma ncftp qemu-user-static libstdc++-10-dev libtinfo5 libgflags-dev
sudo add-apt-repository universe
sudo apt -y install libncurses5
sudo apt -y install gperf gcc-multilib gcc-10-multilib g++-multilib g++-10-multilib libc6-dev lib32ncurses5-dev x11proto-core-dev libx11-dev tree lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc bc ccache lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk3.0-gtk3-dev libxml2 lzop pngcrush schedtool squashfs-tools imagemagick libbz2-dev lzma ncftp qemu-user-static libstdc++-10-dev libncurses5 python3
- name: Install OpenJDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '8'
Expand Down Expand Up @@ -153,7 +151,7 @@ jobs:
- name: Upload to Release (boot and becovery)
if: github.event.inputs.BUILD_TARGET == 'boot' || github.event.inputs.BUILD_TARGET == 'recovery'
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: |
android-recovery/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/${{ github.event.inputs.BUILD_TARGET }}.img
Expand All @@ -167,7 +165,7 @@ jobs:
- name: Upload to Release (if vendor_boot)
if: github.event.inputs.BUILD_TARGET == 'vendorboot'
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: |
android-recovery/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/vendor_boot.img
Expand Down
17 changes: 7 additions & 10 deletions .github/workflows/Recovery-Builder-TWRP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:
options:
- twrp-12.1
- twrp-11
- twrp-9.0
DEVICE_TREE:
description: 'Custom Recovery Tree' # Your already made Device Tree for TWRP
required: true
Expand Down Expand Up @@ -41,7 +40,7 @@ on:
jobs:
build:
name: Build TWRP by ${{ github.actor }}
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
if: github.event.repository.owner.id == github.event.sender.id
env:
GITHUB_TOKEN: ${{ secrets.IMBROGLIOTOKEN }}
Expand All @@ -67,18 +66,17 @@ jobs:
- name: Set Swap Space
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 12
swap-size-gb: 24


- name: Prepare the environment
run: |
sudo apt update
sudo apt -y upgrade
sudo apt -y install gperf gcc-multilib gcc-10-multilib g++-multilib g++-10-multilib libc6-dev lib32ncurses5-dev x11proto-core-dev libx11-dev tree lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc bc ccache lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk3.0-gtk3-dev libxml2 lzop pngcrush schedtool squashfs-tools imagemagick libbz2-dev lzma ncftp qemu-user-static libstdc++-10-dev libtinfo5 libgflags-dev
sudo add-apt-repository universe
sudo apt -y install libncurses5
sudo apt -y install gperf gcc-multilib gcc-10-multilib g++-multilib g++-10-multilib libc6-dev lib32ncurses5-dev x11proto-core-dev libx11-dev tree lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc bc ccache lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk3.0-gtk3-dev libxml2 lzop pngcrush schedtool squashfs-tools imagemagick libbz2-dev lzma ncftp qemu-user-static libstdc++-10-dev libncurses5 python3
- name: Install OpenJDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '8'
Expand All @@ -105,7 +103,6 @@ jobs:
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
repo init --depth=1 -u ${{ steps.manifest.outputs.value }} -b ${{ github.event.inputs.MANIFEST_BRANCH }}
sed -i '/<remove-project name="platform\/external\/gflags" \/>/d' .repo/manifests/remove-minimal.xml
- name: Repo Sync
run: |
Expand Down Expand Up @@ -152,7 +149,7 @@ jobs:
- name: Upload to Release (boot and becovery)
if: github.event.inputs.BUILD_TARGET == 'boot' || github.event.inputs.BUILD_TARGET == 'recovery'
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: |
android-recovery/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/${{ github.event.inputs.BUILD_TARGET }}.img
Expand All @@ -165,7 +162,7 @@ jobs:
- name: Upload to Release (if vendor_boot)
if: github.event.inputs.BUILD_TARGET == 'vendorboot'
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: |
android-recovery/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/vendor_boot.img
Expand Down

0 comments on commit a557d94

Please sign in to comment.