-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add build workflow to 6.12-bookworm branch
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |