Skip to content

Commit

Permalink
Update j3xnlte_lineage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NotNoelChannel authored May 18, 2024
1 parent f213bd0 commit 7123949
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions .github/workflows/j3xnlte_lineage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,48 +49,44 @@ jobs:
python3 ~/.bin/repo sync -c --force-sync --optimized-fetch --no-tags --no-clone-bundle --prune -j$(nproc --all)
- name: Applying patches for LineageOS
run: |
mv ~/TWRP/device/samsung/sharkls-common/patches/bootable_recovery-twrp.diff ~/TWRP/bootable/recovery-twrp
mv ~/TWRP/device/samsung/sharkls-common/patches/sprd-diff/bootable_recovery-twrp.diff ~/TWRP/bootable/recovery-twrp
cd ~/TWRP/bootable/recovery-twrp
patch -p1 < bootable_recovery-twrp.diff
mv ~/TWRP/device/samsung/sharkls-common/patches/external_tinyalsa.diff ~/TWRP/external/tinyalsa
mv ~/TWRP/device/samsung/sharkls-common/patches/sprd-diff/external_tinyalsa.diff ~/TWRP/external/tinyalsa
cd ~/TWRP/external/tinyalsa
patch -p1 < external_tinyalsa.diff
mv ~/TWRP/device/samsung/sharkls-common/patches/frameworks_av.diff ~/TWRP/frameworks/av
mv ~/TWRP/device/samsung/sharkls-common/patches/sprd-diff/frameworks_av.diff ~/TWRP/frameworks/av
cd ~/TWRP/frameworks/av
patch -p1 < frameworks_av.diff
mv ~/TWRP/device/samsung/sharkls-common/patches/frameworks_base.diff ~/TWRP/frameworks/base
mv ~/TWRP/device/samsung/sharkls-common/patches/sprd-diff/frameworks_base.diff ~/TWRP/frameworks/base
cd ~/TWRP/frameworks/base
patch -p1 < frameworks_base.diff
mv ~/TWRP/device/samsung/sharkls-common/patches/frameworks_native.diff ~/TWRP/frameworks/native
mv ~/TWRP/device/samsung/sharkls-common/patches/sprd-diff/frameworks_native.diff ~/TWRP/frameworks/native
cd ~/TWRP/frameworks/native
patch -p1 < frameworks_native.diff
mv ~/TWRP/device/samsung/sharkls-common/patches/frameworks_opt.diff ~/TWRP/frameworks/opt
mv ~/TWRP/device/samsung/sharkls-common/patches/sprd-diff/frameworks_opt.diff ~/TWRP/frameworks/opt
cd ~/TWRP/frameworks/opt
patch -p1 < frameworks_opt.diff
mv ~/TWRP/device/samsung/sharkls-common/patches/hardware_libhardware.diff ~/TWRP/hardware/libhardware
mv ~/TWRP/device/samsung/sharkls-common/patches/sprd-diff/hardware_libhardware.diff ~/TWRP/hardware/libhardware
cd ~/TWRP/hardware/libhardware
patch -p1 < hardware_libhardware.diff
mv ~/TWRP/device/samsung/sharkls-common/patches/hardware_libhardware_legacy.diff ~/TWRP/hardware/libhardware_legacy
mv ~/TWRP/device/samsung/sharkls-common/patches/sprd-diff/hardware_libhardware_legacy.diff ~/TWRP/hardware/libhardware_legacy
cd ~/TWRP/hardware/libhardware_legacy
patch -p1 < hardware_libhardware_legacy.diff
mv ~/TWRP/device/samsung/sharkls-common/patches/packages_apps.diff ~/TWRP/packages/apps
mv ~/TWRP/device/samsung/sharkls-common/patches/sprd-diff/packages_apps.diff ~/TWRP/packages/apps
cd ~/TWRP/packages/apps
patch -p1 < packages_apps.diff
mv ~/TWRP/device/samsung/sharkls-common/patches/system_bt.diff ~/TWRP/system/bt
mv ~/TWRP/device/samsung/sharkls-common/patches/sprd-diff/system_bt.diff ~/TWRP/system/bt
cd ~/TWRP/system/bt
patch -p1 < system_bt.diff
mv ~/TWRP/device/samsung/sharkls-common/patches/system_core.diff ~/TWRP/system/core
mv ~/TWRP/device/samsung/sharkls-common/patches/sprd-diff/system_core.diff ~/TWRP/system/core
cd ~/TWRP/system/core
patch -p1 < system_core.diff
mv ~/TWRP/device/samsung/sharkls-common/patches/system_media.diff ~/TWRP/system/media
mv ~/TWRP/device/samsung/sharkls-common/patches/sprd-diff/system_media.diff ~/TWRP/system/media
cd ~/TWRP/system/media
patch -p1 < system_media.diff
- 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"
Expand All @@ -104,8 +100,6 @@ jobs:
export LC_ALL=C
lunch lineage_j3xnlte-userdebug
make -j$(nproc --all) otapackage
export PATH=$OLDPATH
export JAVA_HOME=$OLDJAVAHOME
- name: Uploading LineageOS builds
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit 7123949

Please sign in to comment.