Skip to content

Commit

Permalink
Add build workflow to 6.12-bookworm branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jolla committed Dec 5, 2024
1 parent ec5b9bd commit d5880e6
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build_kernel_bookworm.yml
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

0 comments on commit d5880e6

Please sign in to comment.