Build Kernel #121
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build kernel | ||
on: | ||
push: | ||
branches: | ||
Grass | ||
pull_request: | ||
branches: | ||
Grass | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
device: [a51, m21, m31, m31s, f41] | ||
rom: [aosp, oneui] | ||
name: "🚧 ${{matrix.device}} ${{matrix.rom}} KSU=${{matrix.ksu}}" | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
- name: Install packages & setup | ||
run: | | ||
sudo apt update | ||
sudo apt install bison flex libssl-dev python3 python-is-python3 libarchive-tools -y | ||
mkdir -p toolchain | ||
cd toolchain | ||
echo 'Download antman and sync' | ||
bash <(curl -s "https://raw.githubusercontent.com/Neutron-Toolchains/antman/main/antman") -S=05012024 | ||
echo 'Patch for glibc' | ||
bash <(curl -s "https://raw.githubusercontent.com/Neutron-Toolchains/antman/main/antman") --patch=glibc | ||
echo 'Done' | ||
- name: Run build | ||
run: | | ||
python build_kernel.py --target=${{matrix.device}} --${{rom}} | ||
- name: Upload to Telegram | ||
uses: appleboy/telegram-action@master | ||
with: | ||
to: ${{ secrets.TELEGRAM_CHAT_ID }} | ||
token: ${{ secrets.TELEGRAM_BOT_KEY }} | ||
document: ./Grass*.zip | ||
message: "Grass Kernel Build For ${{matrix.device}} ${{matrix.rom}} Completed" |