forked from silvzr/bootlegger_kernel
-
Notifications
You must be signed in to change notification settings - Fork 9
64 lines (62 loc) · 1.64 KB
/
build-kernel.yml
File metadata and controls
64 lines (62 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Build Kernel
on:
workflow_call:
inputs:
include_ksu:
required: true
type: string
kernel_git:
required: true
type: string
kernel_branch:
required: true
type: string
anykernel3_git:
required: true
type: string
device_code:
required: true
type: string
device_defconfig:
required: true
type: string
common_defconfig:
required: true
type: string
os:
required: true
type: string
default: ubuntu-latest
jobs:
build-kernel:
runs-on: ${{ inputs.os }}
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Environment
id: env
run: |
echo "Setting up the environment"
sudo bash env.sh
- name: Build
id: build
run: |
echo "Building ${{ inputs.include_ksu }}"
sudo bash main.sh ${{ inputs.include_ksu }} ${{ inputs.kernel_git }} ${{ inputs.kernel_branch }} ${{ inputs.anykernel3_git }} ${{ inputs.device_code }} ${{ inputs.device_defconfig }} ${{ inputs.common_defconfig }}
- name: Prepare Upload
id: prepare
run: |
cd $GITHUB_WORKSPACE/out
zip_name="$(ls *.zip)"
echo "kernel_name=${zip_name::-4}" >> $GITHUB_ENV
if [ ! -f name.txt ]; then
echo "${{ env.kernel_name }}" > name.txt
fi
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ env.kernel_name }}
path: out/*