-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (76 loc) · 2.63 KB
/
kernel-6.1-build.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: kernel-6.1 acso build
on:
workflow_dispatch:
jobs:
build-kernel:
runs-on: ubuntu-latest
# container: ghcr.io/76op/kernel_build:main
permissions:
packages: write
contents: read
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# when set to "true" but frees about 6 GB
tool-cache: true
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true
- uses: actions/checkout@v3
- name: Get Kernel source
run: |
ls -la
sudo docker images -a
sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/lib/dpkg/lock
sudo rm /var/cache/apt/archives/lock
sudo apt update
sudo apt install -y wget tar xz-utils git build-essential flex bison libncurses-dev libelf-dev libssl-dev bc python3 dwarves pahole cpio rsync kmod
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.1.92.tar.xz > /dev/null 2>&1
tar -xvf linux-6.1.92.tar.xz > /dev/null 2>&1
- name: Patch
run: |
pwd
ls -la
cp kernel-6.1/kernel-6.1-config linux-6.1.92/.config
cp kernel-6.1/acso.patch linux-6.1.92/acso.patch
cd linux-6.1.92
git init
git apply acso.patch
echo "$(cat drivers/pci/quirks.c | grep pcie_acs_overrides)"
- name: Build
run: |
ls -la
echo $(nproc)
cd linux-6.1.92
# make -j$(nproc)
- name: Build DebPkg
run: |
pwd
ls -la
cd linux-6.1.92
sudo apt install rsync kmod cpio -y
make deb-pkg LOCALVERSION=-acso KDEB_PKGVERSION=$(make kernelversion)-1
ls -la
ls -la ../
- name: Workaround actions/upload-artifact#176
run: |
pwd
ls -la .
ls -la ..
echo "artifacts_path=$(realpath .)" >> $GITHUB_ENV
- name: Upload DebPkg
uses: actions/upload-artifact@v4
with:
name: debian12-packages
path: |
${{ env.artifacts_path }}/linux-headers-6.1.92-acso_6.1.92-1_amd64.deb
${{ env.artifacts_path }}/linux-libc-dev_6.1.92-1_amd64.deb
${{ env.artifacts_path }}/linux-image-6.1.82-acso_6.1.92-1_amd64.deb
${{ env.artifacts_path }}/linux-image-6.1.92-acso-dbg_6.1.92-1_amd64.deb