Skip to content

CyanogenMod CI (SM-J100H) #3

CyanogenMod CI (SM-J100H)

CyanogenMod CI (SM-J100H) #3

Workflow file for this run

name: CyanogenMod CI (SM-J100H)
on:
workflow_dispatch:
jobs:
build:
name: TWRP 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 TWRP 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/CyanogenMod/android.git -b cm-13.0
git clone https://github.com/iusmac/android_device_samsung_j13g.git -b CM-13 ~/TWRP/device/samsung/j13g
git clone https://github.com/iusmac/android_kernel_samsung_j13g -b CM-13 ~/TWRP/kernel/samsung/j13g
git clone https://github.com/iusmac/android_device_samsung_sprd_common -b CM-13 ~/TWRP/device/samsung/sprd-common
git clone https://github.com/unlegacy-devices/android_vendor_samsung_j13g-2 -b cm-13.0 ~/TWRP/vendor/samsung/j13g
git clone https://github.com/diepquynh/android_hardware_sprd -b cm-13.0 ~/TWRP/hardware/sprd
git clone --depth 1 --branch android-6.0.1_r32 --single-branch https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8 /opt/toolchains/arm-eabi-4.8/
python3 ~/.bin/repo sync -c --force-sync --optimized-fetch --no-tags --no-clone-bundle --prune -j$(nproc --all)
- name: Building CyanogenMod
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/device/samsung/j13g/patches
bash apply-patch.sh
cd ~/TWRP
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
export ARCH=arm
export CROSS_COMPILE=/opt/toolchains/arm-eabi-4.8/bin/arm-eabi-
lunch cm_j13g-userdebug
make -j$(nproc --all) otapackage
export PATH=$OLDPATH
export JAVA_HOME=$OLDJAVAHOME
- name: Uploading TWRP builds
uses: actions/upload-artifact@v2
with:
name: lineage
path: /home/runner/TWRP/out/target/product/j13g/*.zip