Skip to content

Commit e49814d

Browse files
authored
Update blank.yml
1 parent fbb1f94 commit e49814d

File tree

1 file changed

+6
-69
lines changed

1 file changed

+6
-69
lines changed

.github/workflows/blank.yml

Lines changed: 6 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,6 @@ on:
77
description: 'LIBRARY_NAME'
88
required: true
99
default: 'Twrp_Device_Genter'
10-
MANIFEST_URL:
11-
description: 'MANIFEST_URL'
12-
required: true
13-
default: 'git://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git'
14-
MANIFEST_BRANCH:
15-
description: 'LIBRARY_BRANCH'
16-
required: true
17-
default: 'twrp-9.0'
18-
DEVICE_NAME:
19-
description: 'DEVICE_NAME'
20-
required: true
21-
default: 'Archytas'
22-
MAKEFILE_NAME:
23-
description: 'MAKEFILE_NAME'
24-
required: true
25-
default: 'omni_Archytas'
2610
IMG_URL:
2711
description: 'IMG_URL'
2812
required: true
@@ -39,81 +23,34 @@ jobs:
3923

4024
- name: Prepare the environment
4125
run: |
42-
docker rmi `docker images -q`
43-
sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/sudo apt/sources.list.d
4426
sudo apt update
45-
sudo apt -y install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev tree lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc unzip jq bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev imagemagick libbz2-dev libssl-dev lzma ncftp bash-completion python openjdk-8-jdk qemu-user-static --fix-missing
4627
sudo apt -y install python python3 python-pip python3-pip cpio wget
47-
28+
4829
- name: Set variables
4930
run: |
5031
echo "::set-output name=date::$(date +%F)"
5132
id: var
5233

53-
- name: Install repo
54-
run: |
55-
mkdir ~/bin
56-
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
57-
chmod a+x ~/bin/repo
58-
export PATH=~/bin:$PATH
59-
60-
- name: Initialize repo
61-
run: |
62-
PATH=~/bin:$PATH
63-
mkdir workspace
64-
cd workspace
65-
echo "::set-output name=pwd::$(pwd)"
66-
git config --global user.name "Hikaru's Action-Build-Bot"
67-
git config --global user.email "[email protected]"
68-
repo init --depth=1 -u ${{ github.event.inputs.MANIFEST_URL }} -b ${{ github.event.inputs.MANIFEST_BRANCH }}
69-
id: pwd
70-
71-
- name: Repo Sync
72-
run: |
73-
PATH=~/bin:$PATH
74-
cd workspace
75-
repo sync -j$(nproc --all) -f --force-sync
76-
ls -al
77-
7834
- name: Install TWRP generator
7935
run: |
80-
PATH=~/bin:$PATH
8136
pip3 install twrpdtgen
37+
mkdir dt
8238
8339
- name: Download boot or recovery img
8440
run: |
85-
PATH=~/bin:$PATH
86-
cd ${{ steps.pwd.outputs.pwd }}
8741
wget ${{ github.event.inputs.IMG_URL }}
8842
89-
- name: Start build device tree
43+
- name: Start build
9044
run: |
91-
PATH=~/bin:$PATH
92-
cd ${{ steps.pwd.outputs.pwd }}
93-
python3 -m twrpdtgen -o device/ *.img
94-
45+
python3 -m twrpdtgen -o dt/ *.img
9546
- name: ZIP device tree
9647
run: |
97-
PATH=~/bin:$PATH
98-
cd ${{ steps.pwd.outputs.pwd }}
99-
zip -r DeviceTree.zip ./device
100-
101-
- name: Start build recovery
102-
run: |
103-
PATH=~/bin:$PATH
104-
cd ${{ steps.pwd.outputs.pwd }}
105-
export ALLOW_MISSING_DEPENDENCIES=true
106-
source build/envsetup.sh
107-
lunch ${{ github.event.inputs.MAKEFILE_NAME }}-eng
108-
make clean
109-
make recoveryimage -j$(nproc --all)
110-
48+
zip -r DeviceTree.zip ./dt
11149
- name: Upload to Release
11250
uses: softprops/action-gh-release@v1
11351
with:
11452
files: |
115-
workspace/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/recovery.img
116-
workspace/DeviceTree.zip
53+
./DeviceTree.zip
11754
name: TWRP_Device_Tree-${{ github.run_id }}
11855
tag_name: ${{ github.run_id }}
11956
body: DeviceTree for twrp

0 commit comments

Comments
 (0)