Update Recovery Build.yml

- Update to python3
Since something update so Action-TWRP-Builder stopping in the `Prepare the environment` phase.
Example: https://github.com/lopestom/Action-Recovery-Builder-CT/actions/runs/6437158675/job/17481827409#step:5:388

- Update to ubuntu-latest
Since something update so Action-TWRP-Builder stopping in the `Prepare the environment` phase.
Updating python3 failed to solve the issue alone. Therefore, it is necessary to update the Ubuntu version as well.
This resolves future Operating System updates.

The commit alread tested and passing to building img file normally.
Tested to pass: https://github.com/lopestom/Action-Recovery-Builder-CT/actions/runs/6443479246/job/17495478515
https://github.com/lopestom/Action-Recovery-Builder-CT/actions/runs/6443479246/job/17495478515#step:5:1741
This commit is contained in:
lopestorm 2023-10-07 19:35:07 -03:00 committed by GitHub
parent 28079111be
commit 3b46ef99a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ on:
jobs:
build:
if: github.event.repository.owner.id == github.event.sender.id
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
permissions:
contents: write
steps:
@ -74,7 +74,7 @@ jobs:
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 libncurses5 python
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