-
-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (41 loc) · 1.72 KB
/
build_kernel_bookworm.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
name: Build WLAN Pi Kernel for Debian Bookworm
# Description: This workflow builds the WLAN Pi custom Linux kernel and packages it into a Debian package tailored for Debian Bookworm.
on:
push:
branches:
- 6.12-bookworm # Updated to trigger on '6.12-bookworm' branch
workflow_dispatch: # Enables manual triggering without inputs
jobs:
build:
runs-on: ubuntu-latest # Use the latest Ubuntu runner
env:
DISTRO: bookworm
VERSION_CODENAME: bookworm
KERNEL_TARGET_DISTRO: Debian
KERNEL_TARGET_VERSION: bookworm
steps:
# Step 1: Checkout the repository
- name: Checkout Repository
uses: actions/checkout@v3
with:
# By default, actions/checkout checks out the branch where the workflow is triggered
fetch-depth: 0 # Optional: Fetch all history for all branches and tags
# Step 2: Install Dependencies for Bookworm
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential git libncurses-dev flex bison libssl-dev \
bc libelf-dev libudev-dev libpci-dev libiberty-dev autoconf automake libtool \
libpython3-dev crossbuild-essential-arm64 dpkg-dev
# Step 3: Make the build script executable
- name: Make Build Script Executable
run: chmod +x build/build-wlanpi-kernel.sh
# Step 4: Execute the build script for Bookworm
- name: Execute Build Script
run: ./build/build-wlanpi-kernel.sh
# Step 5: Upload the built Debian package as an artifact
- name: Upload Debian Package
uses: actions/upload-artifact@v3
with:
name: wlanpi-kernel-deb-bookworm
path: output/*.deb