Skip to content

Commit

Permalink
Create lineage_j3xlte.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NotNoelChannel authored Jan 13, 2025
1 parent 2c6ff2a commit ff59783
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/lineage_j3xlte.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: LineageOS CI (SM-J320FN)

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
curl --create-dirs -L -o .repo/local_manifests/j3xlte.xml -O -L https://raw.githubusercontent.com/NotNoelChannel/j3xlte_manifest/refs/heads/main/j3xlte.xml
git clone --depth 1 --branch android-7.1.2_r37 --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 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 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
brunch j3xnlte
export PATH=$OLDPATH
export JAVA_HOME=$OLDJAVAHOME
- name: CD to LineageOS builds
run: |
cd $OUT
ls
- name: Uploading LineageOS builds
uses: actions/upload-artifact@v3
with:
name: lineageos
path: /home/runner/TWRP/out/target/product/j3xnlte/*.zip
- name: Uploading LineageOS Recovery builds
uses: actions/upload-artifact@v3
with:
name: lineagerecovery
path: /home/runner/TWRP/out/target/product/j3xnlte/recovery.*

0 comments on commit ff59783

Please sign in to comment.