-
Notifications
You must be signed in to change notification settings - Fork 2
90 lines (63 loc) · 2.44 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: LineageOS-action-build
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Install the build packages
run: |
sudo apt update
sudo apt -y install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git git-lfs gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev libelf-dev liblz4-tool libncurses5 libncurses5-dev libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev python3
- name: Create the directories
run: |
mkdir -p ~/bin
mkdir -p ~/android/lineage
- name: Install the repo command
run: |
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
sudo cp ~/bin/repo /usr/bin/repo
sudo chmod a+x ~/bin/repo
sudo chmod a+x /usr/bin/repo
- name: Configure git
run: |
git config --global user.email [email protected]
git config --global user.name test
- name: Initialize the LineageOS source repository
run: |
cd ~/android/lineage
repo init -u https://github.com/Halium/android -b halium-7.1 --depth=1
repo sync
- name: Prepare the device-specific code
run: |
cd ~/android/lineage
#git clone https://github.com/flydrz/android_device_oppo_PBEM00 -b dummy_lineage-17.1
source build/envsetup.sh
breakfast Z00A
- name: Start the build
run: |
cd ~/android/lineage
mka mkbootimg
export USE_HOST_LEX=yes
mka hybris-boot
mka systemimage
- name: Upload to Release
uses: softprops/action-gh-release@v1
with:
files: |
~/android/lineage/$OUT/recovery.img
name: lineageos-${{ github.run_id }}
tag_name: ${{ github.run_id }}
body: lineageos 17.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload to Release
uses: softprops/action-gh-release@v1
with:
files: |
~/android/lineage/$OUT/lineage-*-UNOFFICIAL-dumpling.zip
name: lineageos-${{ github.run_id }}
tag_name: ${{ github.run_id }}
body: lineageos 17.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}