-
-
Notifications
You must be signed in to change notification settings - Fork 166
61 lines (49 loc) · 1.49 KB
/
ubuntu-builder.yml
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
name: Build Ubuntu kernel
on:
workflow_call:
inputs:
_cpusched:
required: true
type: string
env:
_waydroid: "true"
_processor_opt: "generic"
_distro: "Ubuntu"
_git_mirror: "github.com"
_logging_use_script: "no"
_install_after_building: "no"
_debugdisable: "true"
_noccache: "true"
_STRIP: "true"
_kernel_on_diet: "true"
_kernel_work_folder: "/tmp"
_kernel_source_folder: "/tmp"
# _modprobeddb: "true"
_modprobeddb_db_path: ${{ github.workspace }}/modprobed.db
jobs:
build-kernel:
env:
_cpusched: ${{ inputs._cpusched }}
runs-on: ubuntu-latest
steps:
- name: Checkount linux-tkg
uses: actions/checkout@v4
# - name: "[debug] make dummy modprobed-db file for faster ci"
# run: |
# touch "${_modprobeddb_db_path}"
# echo "${_modprobeddb_db_path}"
- name: Install deps and compile kernel
run: yes '' | ./install.sh install
# run: |
# mkdir -p "$PKGDEST"
# echo "test" > "$PKGDEST"/linux-$_cpusched.pkg.tar.zst
- name: Cleanup useless DEB files
run: rm -rf DEBS/*dbg*.deb DEBS/*libc-dev*.deb
- name: rename kernel config
run: mv kernelconfig.new kernelconfig.ubuntu.${{ env._cpusched }}.txt
- uses: actions/upload-artifact@v4
with:
name: ubuntu-kernel-packages-${{ env._cpusched }}
path: |
${{ github.workspace }}/DEBS/*.deb
${{ github.workspace }}/kernelconfig*.txt