Skip to content

Commit

Permalink
Implement ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ghazzor authored Jan 22, 2025
1 parent bb3719a commit 9204f54
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: build

on:

workflow_dispatch:
push:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
device: [g84]
name: "🚧 Build for ${{matrix.device}}"

steps:
- name: Checkout source
uses: actions/checkout@v4
with:
fetch-depth: 1

- uses: szenius/set-timezone@v2.0
with:
timezoneLinux: "Asia/Kolkata"

- name: Setup Toolchains
run: |
sudo apt update
sudo apt install bison flex libssl-dev libarchive-tools zramctl -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 'Done'
- name: Set Swap Space
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 16

- name: Run build
run: |
zramctl
DEVICE=${{matrix.device}} KSU=1 ./build.sh
- name: Upload kernel
uses: actions/upload-artifact@v4
with:
name: O_kernel-${{matrix.device}}_Clang_18
path: AnyKernel3/O*.zip

- name: Upload to Telegram
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
document: AnyKernel3/O*.zip
message: "Build COmpleted"

0 comments on commit 9204f54

Please sign in to comment.