7
7
description : ' LIBRARY_NAME'
8
8
required : true
9
9
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'
26
10
IMG_URL :
27
11
description : ' IMG_URL'
28
12
required : true
@@ -39,81 +23,34 @@ jobs:
39
23
40
24
- name : Prepare the environment
41
25
run : |
42
- docker rmi `docker images -q`
43
- sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/sudo apt/sources.list.d
44
26
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
46
27
sudo apt -y install python python3 python-pip python3-pip cpio wget
47
-
28
+
48
29
- name : Set variables
49
30
run : |
50
31
echo "::set-output name=date::$(date +%F)"
51
32
id : var
52
33
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
-
78
34
- name : Install TWRP generator
79
35
run : |
80
- PATH=~/bin:$PATH
81
36
pip3 install twrpdtgen
37
+ mkdir dt
82
38
83
39
- name : Download boot or recovery img
84
40
run : |
85
- PATH=~/bin:$PATH
86
- cd ${{ steps.pwd.outputs.pwd }}
87
41
wget ${{ github.event.inputs.IMG_URL }}
88
42
89
- - name : Start build device tree
43
+ - name : Start build
90
44
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
95
46
- name : ZIP device tree
96
47
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
111
49
- name : Upload to Release
112
50
uses : softprops/action-gh-release@v1
113
51
with :
114
52
files : |
115
- workspace/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/recovery.img
116
- workspace/DeviceTree.zip
53
+ ./DeviceTree.zip
117
54
name : TWRP_Device_Tree-${{ github.run_id }}
118
55
tag_name : ${{ github.run_id }}
119
56
body : DeviceTree for twrp
0 commit comments