build_stable (KSU) #15
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_stable (KSU) | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
device: [m21, m31] | |
old: [0, 1] | |
ksu: [1] | |
name: "🚧 Build for ${{matrix.device}} KSU=${{matrix.ksu}} OLD=${{matrix.old}}" | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- uses: szenius/[email protected] | |
with: | |
timezoneLinux: "Asia/Kolkata" | |
- name: Setup Toolchains | |
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: | | |
DEVICE=${{matrix.device}} KSU=${{matrix.ksu}} OLD=${{matrix.old}} ./build.sh | |
- name: Upload to Telegram | |
uses: appleboy/telegram-action@master | |
with: | |
to: ${{ secrets.TELEGRAM_CHAT_ID }} | |
token: ${{ secrets.TELEGRAM_BOT_TOKEN }} | |
document: AnyKernel3/N*.zip | |
- name: Upload kernel | |
uses: actions/upload-artifact@v4 | |
with: | |
name: N_kernel-${{matrix.device}}_Clang_18 | |
path: AnyKernel3/N*.zip |