Skip to content
This repository was archived by the owner on Oct 12, 2025. It is now read-only.

laurel_sprout: give a correct name #17

laurel_sprout: give a correct name

laurel_sprout: give a correct name #17

name: Build KernelSU-Next for Laurel_Sprout
on:
push:
branches:
- laurel_sprout
pull_request:
branches:
- laurel_sprout
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
container: ghcr.io/tedomi2705/kernel_builder_image:latest
steps:
- name: 📂 Checkout builder's sourcecode and get files
uses: actions/checkout@v4
- name: ⚡ Checkout kernel's sourcecode and clone submodules
run: |
git clone --depth=1 https://github.com/Evolution-x-devices/kernel_xiaomi_sm6125 kernel_xiaomi_sm6125 -b vic
- name: 📅 Export date of build
run: |
echo "DATE=$(date +%d%m%Y)" >> $GITHUB_ENV
- name: 📥 Clone AnyKernel3
run: |
cd kernel_xiaomi_sm6125
git clone -b laurel_sprout https://github.com/Oneloutre/AnyKernel3.git anykernel
rm -rf anykernel/.git
- name: 🔍 Device's codename and kernel's version
run: |
cd kernel_xiaomi_sm6125
DEVICE_CODENAME=laurel_sprout
KERNEL_VERSION=$(make kernelversion)
echo "Device Codename: $DEVICE_CODENAME"
echo "Kernel Version: $KERNEL_VERSION"
echo "DEVICE_CODENAME=$DEVICE_CODENAME" >> $GITHUB_ENV
echo "KERNEL_VERSION=$KERNEL_VERSION" >> $GITHUB_ENV
- name: 🚀 Enable ccache to speed the build up
uses: hendrikmuhs/ccache-action@v1.2
with:
max-size: 7G
- name: 🛠️ Build the kramel
run: |
./build.sh laurel_sprout
- name: 🚀 Copy the compiled kernel to AnyKernel3 then create the zip
run: |
cd kernel_xiaomi_sm6125
ZIP_NAME="Kernel-Caelum-${DEVICE_CODENAME}-${KERNEL_VERSION}-$(date +%d%m%Y).zip"
cp out/arch/arm64/boot/Image.gz-dtb anykernel/
cd anykernel && zip -r9 $ZIP_NAME ./*
mv $ZIP_NAME ../../
echo "ZIP_NAME=$ZIP_NAME" >> $GITHUB_ENV
- name: 🤌 Copy zip file to get 2 different zip files
run: |
ZIP_ALTERNATIVE="KernelSU-Next-Caelum-${DEVICE_CODENAME}-latest.zip"
cp ${ZIP_NAME} $ZIP_ALTERNATIVE
echo "Copied ${ZIP_NAME} as $ZIP_ALTERNATIVE"
echo "ZIP_ALTERNATIVE=$ZIP_ALTERNATIVE" >> $GITHUB_ENV
- name: 📤 Publish github release
uses: softprops/action-gh-release@v2
with:
files: ${{ env.ZIP_ALTERNATIVE }}
tag_name: "latest"
draft: false
prerelease: false
- name: 📤 Publish with tag associated to the kernel and the date
uses: softprops/action-gh-release@v2
with:
files: ${{ env.ZIP_NAME }}
tag_name: Kernel-Caelum-${{ env.DEVICE_CODENAME }}-${{ env.KERNEL_VERSION }}-${{ env.DATE }}
draft: false
prerelease: false
notification:
runs-on: ubuntu-22.04
needs: build
steps:
- name: 📂 Checkout builder's sourcecode and get files
uses: actions/checkout@v4
- name: 🚀 Notify people on Discord
env:
DEVICE_CODENAME: laurel_sprout
KERNEL_VERSION: 4.14.355
WEBHOOK: ${{ secrets.WEBHOOK }}
NAME: KernelSU-Next-Caelum-laurel_sprout-4.14.355.zip
run: |
python3 .github/webhook.py