Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 0 additions & 62 deletions .github/workflows/build-debug-kernel.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/build-gki-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build Android GKI Image
on:
workflow_dispatch:
inputs:
debug:
description: 'Build debug kernel'
required: false
type: boolean
default: false

jobs:
build-a12-kernel:
uses: ./.github/workflows/deps/gki/build-kernel-a12.yml
secrets: inherit
with:
debug: ${{ github.event.inputs.debug || false }}
build-a13-kernel:
uses: ./.github/workflows/deps/gki/build-kernel-a13.yml
secrets: inherit
with:
debug: ${{ github.event.inputs.debug || false }}
build-a14-kernel:
uses: ./.github/workflows/deps/gki/build-kernel-a14.yml
secrets: inherit
with:
debug: ${{ github.event.inputs.debug || false }}
build-a15-kernel:
uses: ./.github/workflows/deps/gki/build-kernel-a15.yml
secrets: inherit
with:
debug: ${{ github.event.inputs.debug || false }}
6 changes: 3 additions & 3 deletions .github/workflows/build-kernel-avd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ on:
branches: ["main", "ci", "checkci"]
paths:
- ".github/workflows/build-kernel-avd.yml"
- ".github/workflows/avd-kernel.yml"
- ".github/workflows/deps/other/avd-kernel.yml"
- ".github/workflows/manifests/*xml"
- "kernel/**"
pull_request:
branches: ["main"]
paths:
- ".github/workflows/build-kernel-avd.yml"
- ".github/workflows/avd-kernel.yml"
- ".github/workflows/deps/other/avd-kernel.yml"
- ".github/workflows/manifests/*.xml"
- "kernel/**"
workflow_call:
workflow_dispatch:
jobs:
build-kernel:
if: github.event_name != 'pull_request' && github.ref != 'refs/heads/checkci'
uses: ./.github/workflows/avd-kernel.yml
uses: ./.github/workflows/deps/other/avd-kernel.yml
secrets: inherit
strategy:
matrix:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-kernel-wsa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ on:
branches: ["main", "ci", "checkci"]
paths:
- ".github/workflows/build-kernel-wsa.yml"
- ".github/workflows/wsa-kernel.yml"
- ".github/workflows/deps/other/wsa-kernel.yml"
- "kernel/**"
pull_request:
branches: ["main"]
paths:
- ".github/workflows/build-kernel-wsa.yml"
- ".github/workflows/wsa-kernel.yml"
- ".github/workflows/deps/other/wsa-kernel.yml"
- "kernel/**"
workflow_call:
workflow_dispatch:
Expand All @@ -22,14 +22,14 @@ jobs:
matrix:
arch: [x86_64, arm64]
version: ["5.15.94.2", "5.15.104.1", "5.15.104.2", "5.15.104.3", "5.15.104.4"]
uses: ./.github/workflows/wsa-kernel.yml
uses: ./.github/workflows/deps/other/wsa-kernel.yml
with:
arch: ${{ matrix.arch }}
version: ${{ matrix.version }}

check_build:
if: (github.event_name == 'pull_request' && !github.event.pull_request.draft) || github.ref == 'refs/heads/checkci'
uses: ./.github/workflows/wsa-kernel.yml
uses: ./.github/workflows/deps/other/wsa-kernel.yml
strategy:
matrix:
arch: [x86_64, arm64]
Expand Down
42 changes: 15 additions & 27 deletions .github/workflows/build-lkm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,27 @@ on:
push:
branches: ["main", "ci", "checkci"]
paths:
- ".github/workflows/build-lkm.yml"
- ".github/workflows/**"
- "kernel/**"
pull_request:
branches: ["main"]
paths:
- ".github/workflows/build-lkm.yml"
- ".github/workflows/**"
- "kernel/**"
workflow_call:
workflow_dispatch:
jobs:
build-lkm:
strategy:
matrix:
include:
- version: "android12-5.10"
sub_level: 236
os_patch_level: 2025-05
- version: "android13-5.10"
sub_level: 234
os_patch_level: 2025-03
- version: "android13-5.15"
sub_level: 178
os_patch_level: 2025-03
- version: "android14-5.15"
sub_level: 178
os_patch_level: 2025-03
- version: "android14-6.1"
sub_level: 134
os_patch_level: 2025-05
- version: "android15-6.6"
sub_level: 87
os_patch_level: 2025-05
uses: ./.github/workflows/gki-kernel.yml
kmi:
- android12-5.10
- android13-5.10
- android13-5.15
- android14-5.15
- android14-6.1
- android15-6.6
uses: ./.github/workflows/deps/ddk-lkm.yml
with:
version: ${{ matrix.version }}
version_name: ${{ matrix.version }}.${{ matrix.sub_level }}
tag: ${{ matrix.version }}-${{ matrix.os_patch_level }}
os_patch_level: ${{ matrix.os_patch_level }}
build_lkm: true
kmi: ${{ matrix.kmi }}
ddk_release: '20251016'
3 changes: 2 additions & 1 deletion .github/workflows/build-manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: [ "main", "ci" ]
paths:
- '.github/workflows/build-manager.yml'
- '.github/workflows/build-lkm.yml'
- 'manager/**'
- 'kernel/**'
- 'userspace/ksud/**'
Expand Down Expand Up @@ -38,7 +39,7 @@ jobs:
os: ubuntu-latest
- target: x86_64-unknown-linux-musl # x86 Linux
os: ubuntu-latest
uses: ./.github/workflows/ksud.yml
uses: ./.github/workflows/deps/ksud.yml
with:
target: ${{ matrix.target }}
os: ${{ matrix.os }}
Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/deps/ddk-lkm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build KernelSU Kernel Module

on:
workflow_call:
inputs:
kmi:
description: 'KMI version'
required: true
type: string
ddk_release:
description: 'DDK release version'
required: false
default: '20251016'
type: string

jobs:
build-kernelsu-ko:
name: Build kernelsu.ko for ${{ inputs.kmi }}
runs-on: ubuntu-latest
container:
image: ghcr.io/ylarod/ddk:${{ inputs.kmi }}-${{ inputs.ddk_release }}
options: --privileged

steps:
- name: Checkout source code
uses: actions/checkout@v4

- name: Build kernelsu.ko
run: |
cd kernel

echo "=== Building kernelsu.ko for KMI: ${{ inputs.kmi }} ==="

CONFIG_KSU=m make

echo "=== Build completed ==="

# Create output directory in GitHub workspace
mkdir -p /github/workspace/out

# Copy with KMI-specific naming
OUTPUT_NAME="${{ inputs.kmi }}_kernelsu.ko"
cp kernelsu.ko "/github/workspace/out/$OUTPUT_NAME"

echo "Copied to: /github/workspace/out/$OUTPUT_NAME"
ls -la "/github/workspace/out/$OUTPUT_NAME"
echo "Size: $(du -h "/github/workspace/out/$OUTPUT_NAME" | cut -f1)"
llvm-strip -d "/github/workspace/out/$OUTPUT_NAME"
echo "Size after stripping: $(du -h "/github/workspace/out/$OUTPUT_NAME" | cut -f1)"

- name: Upload kernelsu.ko artifact
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.kmi }}-lkm
path: /github/workspace/out/${{ inputs.kmi }}_kernelsu.ko
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
name: Build Kernel - Android 12
on:
push:
branches: ["main", "ci", "checkci"]
paths:
- ".github/workflows/build-kernel-a12.yml"
- ".github/workflows/gki-kernel.yml"
- ".github/scripts/build_a12.sh"
- "kernel/**"
pull_request:
branches: ["main"]
paths:
- ".github/workflows/build-kernel-a12.yml"
- ".github/workflows/gki-kernel.yml"
- ".github/scripts/build-a12.sh"
- "kernel/**"
# push:
# branches: ["main", "ci", "checkci"]
# paths:
# - ".github/workflows/deps/gki/build-kernel-a12.yml"
# - ".github/workflows/deps/gki/gki-kernel.yml"
# - ".github/scripts/build_a12.sh"
# - "kernel/**"
workflow_call:
inputs:
debug:
description: 'Build debug kernel'
required: false
type: boolean
default: false
jobs:
build-kernel:
if: github.event_name != 'pull_request' && github.ref != 'refs/heads/checkci'
Expand All @@ -31,14 +30,15 @@ jobs:
os_patch_level: 2025-02
- sub_level: 236
os_patch_level: 2025-05
uses: ./.github/workflows/gki-kernel.yml
uses: ./.github/workflows/deps/gki/gki-kernel.yml
secrets: inherit
with:
version: android12-5.10
version_name: android12-5.10.${{ matrix.sub_level }}
tag: android12-5.10-${{ matrix.os_patch_level }}
os_patch_level: ${{ matrix.os_patch_level }}
patch_path: "5.10"
debug: ${{ inputs.debug || false }}

upload-artifacts:
needs: build-kernel
Expand Down Expand Up @@ -110,13 +110,3 @@ jobs:
with:
name: boot-images-android12
path: Image-android12*/*.img.gz

check-build-kernel:
if: (github.event_name == 'pull_request' && !github.event.pull_request.draft) || github.ref == 'refs/heads/checkci'
uses: ./.github/workflows/gki-kernel.yml
with:
version: android12-5.10
version_name: android12-5.10.223
tag: android12-5.10-2024-11
os_patch_level: 2024-11
patch_path: "5.10"
Loading