Skip to content

Commit 6544dea

Browse files
authored
Create main.yml
1 parent 132fec2 commit 6544dea

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
2+
name: Build
3+
4+
on:
5+
workflow_dispatch:
6+
push:
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout kernel source
14+
uses: actions/checkout@v2
15+
with:
16+
submodules: recursive
17+
18+
- name: Checkout zipper
19+
uses: actions/checkout@v2
20+
with:
21+
repository: Lafactorial/AnyKernel31
22+
ref: sweetk6a
23+
path: zipper
24+
25+
- name: Android kernel build
26+
uses: Keinamvy/android-kernel-actions@master
27+
id: build
28+
env:
29+
NAME: VantomKernel_KSU
30+
with:
31+
arch: arm64
32+
compiler: clang/15
33+
defconfig: gki_defconfig vendor/parrot_GKI.config vendor/garnet_GKI.config vendor/debugfs.config
34+
image: Image
35+
36+
- name: Release build
37+
uses: appleboy/telegram-action@master
38+
with:
39+
to: ${{ secrets.CHANNEL_ID }}
40+
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
41+
message: Kernel is built!, took ${{ steps.build.outputs.elapsed_time }} seconds.
42+
document: ${{ github.workspace }}/${{ steps.build.outputs.outfile }}.zip
43+
44+
- name: Upload artifact
45+
uses: actions/upload-artifact@v4
46+
with:
47+
path: |
48+
zipper/
49+
!zipper/.gitignore
50+
!zipper/README.md
51+
compression-level: 9
52+
name: ${{ steps.build.outputs.outfile }}

0 commit comments

Comments
 (0)