Jelajahi Sumber

feat(workflows): update kernel workflows for consistency and add A16 6.12 configuration

TheWildJames 7 bulan lalu
induk
melakukan
7baac870e8

+ 1 - 1
.github/workflows/kernel-a16-612.yml → .github/workflows/kernel-a16-6-12.yml

@@ -18,7 +18,7 @@ on:
         type: boolean
 
 jobs:
-  build-kernels-a16-612:
+  build-kernels-a16-6-12:
     name: "6.12.${{ matrix.sub_level }}-${{ matrix.os_patch_level }}"
     strategy:
       fail-fast: false

+ 0 - 2
.github/workflows/kernel-lts.yml

@@ -6,7 +6,6 @@ permissions:
 
 on:
   workflow_call:
-  push:
     inputs:
       ksu_commit:
         required: false
@@ -61,7 +60,6 @@ jobs:
       kernel_version: ${{ matrix.kernel_version }}
       sub_level: ${{ matrix.sub_level }}
       os_patch_level: ${{ matrix.os_patch_level }}
-      variant: ${{ matrix.variant }}
       ksu_commit: ${{ inputs.ksu_commit }}
       feature_set: ${{ inputs.feature_set }}
       build_bypass: ${{ inputs.build_bypass }}

+ 27 - 38
.github/workflows/kernel-testing.yml

@@ -1,24 +1,12 @@
-name: Kernel Testing
+name: Kernel Config - Testing
+
+permissions:
+  contents: write
+  actions: write
 
 on:
-  workflow_dispatch:
-  push:
+  workflow_call:
     inputs:
-      android_version:
-        required: true
-        type: string
-      kernel_version:
-        required: true
-        type: string
-      sub_level:
-        required: true
-        type: string
-      os_patch_level:
-        required: true
-        type: string
-      variant:
-        required: false
-        type: string
       ksu_commit:
         required: false
         type: string
@@ -28,28 +16,29 @@ on:
       build_bypass:
         required: true
         type: boolean
+  push:
 
 jobs:
-  build-gki:
-    name: "${{ inputs.kernel_version }}.${{ inputs.sub_level }}-${{ inputs.android_version }}-${{ inputs.os_patch_level }}-${{ matrix.build_type }}"
-    runs-on: ubuntu-latest
-    timeout-minutes: 60
+  build-kernels-testing:
+    name: "Testing-${{ matrix.android_version }}-${{ matrix.kernel_version }}"
     strategy:
       fail-fast: false
       matrix:
-        build_type: [TheWildJames]
-    steps:
-      - name: Build Summary
-        run: |
-          echo "========================================"
-          echo "       Kernel Build Summary"
-          echo "========================================"
-          echo "Android Version : ${{ inputs.android_version }}"
-          echo "Kernel Version  : ${{ inputs.kernel_version }}"
-          echo "Sub Level       : ${{ inputs.sub_level }}"
-          echo "Patch Level     : ${{ inputs.os_patch_level }}"
-          echo "Build Type      : ${{ matrix.build_type }}"
-          echo "KSU Commit      : ${{ inputs.ksu_commit || 'Default' }}"
-          echo "Variant         : ${{ inputs.variant || 'Standard' }}"
-          echo "========================================"
-      # ...existing steps from build.yml as needed for TheWildJames...
+        include:
+          - android_version: "android14"
+            kernel_version: "6.1"
+            sub_level: "145"
+            os_patch_level: "2025-09"
+            variant: "TheWildJames"
+
+    uses: ./.github/workflows/build.yml
+    secrets: inherit
+    with:
+      android_version: ${{ matrix.android_version }}
+      kernel_version: ${{ matrix.kernel_version }}
+      sub_level: ${{ matrix.sub_level }}
+      os_patch_level: ${{ matrix.os_patch_level }}
+      variant: ${{ matrix.variant }}
+      ksu_commit: ${{ inputs.ksu_commit }}
+      feature_set: ${{ inputs.feature_set }}
+      build_bypass: ${{ inputs.build_bypass }}

+ 20 - 11
.github/workflows/main.yml

@@ -25,7 +25,7 @@ on:
         description: "Kernel Type to Build"
         type: choice
         options:
-          - All
+          - all
           - a12-5-10
           - a13-5-10
           - a13-5-15
@@ -35,6 +35,7 @@ on:
           - a16-6-12
           - lts
           - custom
+          - testing
         default: custom
       feature_set:
         description: "Feature Set"
@@ -48,8 +49,16 @@ on:
         default: WKSU+SUSFS+BBG
 
 jobs:
+  build-testing:
+    if: ${{ inputs.kernel_type == 'all' || inputs.kernel_type == 'testing' }}
+    uses: ./.github/workflows/kernel-testing.yml
+    secrets: inherit
+    with:
+      ksu_commit: ${{ inputs.ksu_commit }}
+      build_bypass: ${{ inputs.build_bypass }}
+      feature_set: ${{ inputs.feature_set }}
   build-a12-5-10:
-    if: ${{ inputs.kernel_type == 'All' || inputs.kernel_type == 'a12-5-10' }}
+    if: ${{ inputs.kernel_type == 'all' || inputs.kernel_type == 'a12-5-10' }}
     uses: ./.github/workflows/kernel-a12-5-10.yml
     secrets: inherit
     with:
@@ -58,7 +67,7 @@ jobs:
       feature_set: ${{ inputs.feature_set }}
 
   build-a13-5-10:
-    if: ${{ inputs.kernel_type == 'All' || inputs.kernel_type == 'a13-5-10' }}
+    if: ${{ inputs.kernel_type == 'all' || inputs.kernel_type == 'a13-5-10' }}
     uses: ./.github/workflows/kernel-a13-5-10.yml
     secrets: inherit
     with:
@@ -67,7 +76,7 @@ jobs:
       feature_set: ${{ inputs.feature_set }}
 
   build-a13-5-15:
-    if: ${{ inputs.kernel_type == 'All' || inputs.kernel_type == 'a13-5-15' }}
+    if: ${{ inputs.kernel_type == 'all' || inputs.kernel_type == 'a13-5-15' }}
     uses: ./.github/workflows/kernel-a13-5-15.yml
     secrets: inherit
     with:
@@ -76,7 +85,7 @@ jobs:
       feature_set: ${{ inputs.feature_set }}
 
   build-a14-5-15:
-    if: ${{ inputs.kernel_type == 'All' || inputs.kernel_type == 'a14-5-15' }}
+    if: ${{ inputs.kernel_type == 'all' || inputs.kernel_type == 'a14-5-15' }}
     uses: ./.github/workflows/kernel-a14-5-15.yml
     secrets: inherit
     with:
@@ -85,7 +94,7 @@ jobs:
       feature_set: ${{ inputs.feature_set }}
 
   build-a14-6-1:
-    if: ${{ inputs.kernel_type == 'All' || inputs.kernel_type == 'a14-6-1' }}
+    if: ${{ inputs.kernel_type == 'all' || inputs.kernel_type == 'a14-6-1' }}
     uses: ./.github/workflows/kernel-a14-6-1.yml
     secrets: inherit
     with:
@@ -94,7 +103,7 @@ jobs:
       feature_set: ${{ inputs.feature_set }}
 
   build-a15-6-6:
-    if: ${{ inputs.kernel_type == 'All' || inputs.kernel_type == 'a15-6-6' }}
+    if: ${{ inputs.kernel_type == 'all' || inputs.kernel_type == 'a15-6-6' }}
     uses: ./.github/workflows/kernel-a15-6-6.yml
     secrets: inherit
     with:
@@ -103,8 +112,8 @@ jobs:
       feature_set: ${{ inputs.feature_set }}
 
   build-a16-6-12:
-    if: ${{ inputs.kernel_type == 'All' || inputs.kernel_type == 'a16-6-12' }}
-    uses: ./.github/workflows/kernel-a16-612.yml
+    if: ${{ inputs.kernel_type == 'all' || inputs.kernel_type == 'a16-6-12' }}
+    uses: ./.github/workflows/kernel-a16-6-12.yml
     secrets: inherit
     with:
       ksu_commit: ${{ inputs.ksu_commit }}
@@ -112,7 +121,7 @@ jobs:
       feature_set: ${{ inputs.feature_set }}
 
   build-custom:
-    if: ${{ inputs.kernel_type == 'All' || inputs.kernel_type == 'custom' }}
+    if: ${{ inputs.kernel_type == 'all' || inputs.kernel_type == 'custom' }}
     uses: ./.github/workflows/kernel-custom.yml
     secrets: inherit
     with:
@@ -121,7 +130,7 @@ jobs:
       feature_set: ${{ inputs.feature_set }}
 
   build-lts:
-    if: ${{ inputs.kernel_type == 'All' || inputs.kernel_type == 'lts' }}
+    if: ${{ inputs.kernel_type == 'all' || inputs.kernel_type == 'lts' }}
     uses: ./.github/workflows/kernel-lts.yml
     secrets: inherit
     with: