-
-
Notifications
You must be signed in to change notification settings - Fork 4
85 lines (71 loc) · 2.77 KB
/
build-kernel.yml
File metadata and controls
85 lines (71 loc) · 2.77 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Build Kernel
on:
workflow_dispatch:
inputs:
version:
description: 'Kernel version'
required: false
jobs:
build:
runs-on: ubuntu-latest
env:
BUILDPATH: /build
CONFIGDIR: /config
RELEASEDIR: /release
PATCHDIR: /patches
MAINTAINER: "GitHub Kernel Builder <ci@kernel>"
LLVM: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker Image
run: docker build -f dockerbuild/Dockerfile -t kernel-builder dockerbuild
- name: Ensure required directories exist
run: mkdir -p build release patches
# Using Option A: Mount kernel-configs directly as /config
- name: Run Kernel Build
run: |
docker run --rm \
-v ${{ github.workspace }}/build:/build \
-v ${{ github.workspace }}/release:/release \
-v ${{ github.workspace }}/kernel-configs:/config \
-v ${{ github.workspace }}/patches:/patches \
-e BUILDPATH=/build \
-e CONFIGDIR=/config \
-e RELEASEDIR=/release \
-e PATCHDIR=/patches \
-e MAINTAINER="GitHub Kernel Builder <ghkernel@stargazer.at>" \
-e LLVM=false \
kernel-builder ${{ github.event.inputs.version }}
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: kernel-release
path: release/
- name: Create Draft Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: "v${{ github.event.inputs.version }}"
release_name: "Kernel Release v${{ github.event.inputs.version }}"
draft: true
prerelease: false
body: |
This release includes the following packages:
• linux-headers
• linux-image
• linux-libc-dev
**Configurations:**
- **Vanilla:** The default configuration taken from a recent Debian kernel config and applied to the latest upstream kernel.
- **VM:** An optimized configuration for virtual environments (VMware, VirtualBox, Hyper-V, Xen, KVM) with unnecessary drivers removed.
**Automated Installation:**
For convenient installs, use our Packagecloud repository:
```bash
curl -s https://packagecloud.io/install/repositories/debian-kernels/buster/script.deb.sh | sudo bash
```
Then install the desired kernel packages using your package manager.
Enjoy your new kernel!