forked from TeamWin/android_device_samsung_loganreltexx
-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (75 loc) · 4.05 KB
/
main2.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
name: LineageOS CI
on:
workflow_dispatch:
jobs:
build:
name: LineageOS Build CI
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
steps:
- name: Check Out
uses: actions/checkout@v3
- name: Cleanup
uses: rokibhasansagar/slimhub_actions@main
- name: Installing JDK 7 + Build Dependencies
run: |
sudo apt-get update
sudo apt-get 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 axel python
- name: Install OpenJDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '8'
- name: Syncing LineageOS sources
run: |
mkdir ~/TWRP
cd ~/TWRP
mkdir ~/.bin
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo
python3 ~/.bin/repo init --depth=1 -u https://github.com/LineageOS/android.git -b cm-14.1
git clone https://github.com/MSM8930-Samsung/android_device_samsung_loganreltexx.git -b cm-14.1 ~/TWRP/device/samsung/loganreltexx
git clone https://github.com/MSM8930-Samsung/android_kernel_samsung_msm8930-common -b cm-14.1 ~/TWRP/kernel/samsung/msm8930-common
git clone https://github.com/MSM8930-Samsung/proprietary_vendor_samsung_loganreltexx -b cm-14.1 ~/TWRP/vendor/samsung/loganreltexx
python3 ~/.bin/repo sync -c --force-sync --optimized-fetch --no-tags --no-clone-bundle --prune -j$(nproc --all)
- name: Building LineageOS
run: |
OLDPATH=$PATH
OLDJAVAHOME=$JAVA_HOME
export PATH="$HOME/.jdk_7/java-se-7u75-ri/bin:$PATH"
export JAVA_HOME="$HOME/.jdk_7/java-se-7u75-ri"
cd ~/TWRP
git clone https://github.com/MSM8930-Samsung/android_device_samsung_qcom-common -b cm-14.1 ~/TWRP/device/samsung/qcom-common
git clone https://github.com/MSM8930-Samsung/android_device_samsung_msm8930-common -b cm-14.1 ~/TWRP/device/samsung/msm8930-common
git clone https://github.com/LineageOS/android_hardware_samsung -b cm-14.1 ~/TWRP/hardware/samsung
git clone https://github.com/LineageOS/android_device_qcom_common -b cm-14.1 ~/TWRP/device/qcom/common
git clone https://github.com/LineageOS/android_external_stlport -b cm-14.1 ~/TWRP/external/stlport
git clone https://github.com/LineageOS/android_external_busybox -b cm-14.1 ~/TWRP/external/busybox
git clone https://github.com/LineageOS/android_packages_resources_devicesettings -b cm-14.1 ~/TWRP/packages/resources/devicesettings
git clone https://github.com/CyanogenMod/android_vendor_nxp-nfc_opensource_Nfc -b cm-14.1 ~/TWRP/vendor/nxp-nfc/opensource/Nfc
git clone https://github.com/CyanogenMod/android_vendor_nxp-nfc_opensource_libnfc-nci -b cm-14.1 ~/TWRP/vendor/nxp-nfc/opensource/libnfc-nci
git clone https://github.com/CyanogenMod/android_vendor_nxp-nfc_opensource_frameworks -b cm-14.1 ~/TWRP/vendor/nxp-nfc/opensource/frameworks
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
source build/envsetup.sh
export ALLOW_MISSING_DEPENDENCIES=true
export LC_ALL=C
lunch lineage_loganreltexx-eng
make -j$(nproc --all) otapackage
export PATH=$OLDPATH
export JAVA_HOME=$OLDJAVAHOME
- name: CD to LineageOS builds
run: |
cd $OUT
ls
- name: Uploading LineageOS builds
uses: actions/upload-artifact@v2
with:
name: lineageos
path: /home/runner/TWRP/out/target/product/loganreltexx/*.zip
- name: Uploading LineageOS Recovery builds
uses: actions/upload-artifact@v2
with:
name: lineagerecovery
path: /home/runner/TWRP/out/target/product/loganreltexx/recovery.*