Parcourir la source

feat(workflows): add kernel testing workflow with required inputs

TheWildJames il y a 7 mois
Parent
commit
a0e703af72

+ 0 - 4
.github/workflows/build.yml

@@ -43,7 +43,6 @@ jobs:
           ${{
             fromJSON(
               inputs.variant == 'vTomsonek' && '["vTomsonek"]' ||
-              inputs.variant == 'TheWildJames' && '["TheWildJames"]' ||
               inputs.variant == 'TheWildJamesTest' && '["TheWildJamesTest"]' ||
               inputs.variant == 'MarionKernel' && '["MarionKernel"]' ||
               inputs.variant == 'Hakan' && '["Hakan"]' ||
@@ -548,9 +547,6 @@ jobs:
         #Wild to Kernel Version (replace last instance only)
         if [[ "${{ inputs.kernel_version }}" == "5."* ]] || [[ "${{ inputs.kernel_version }}" == "6.1" ]]; then
           case ${{ matrix.build_type }} in
-            TheWildJames)
-              perl -i -0777 -pe 's/(.*)echo "\$res"/$1echo "\$res-🟢-Wild-Exclusive"/s' ./common/scripts/setlocalversion
-              ;;
             MarionKernel)
               perl -i -0777 -pe 's/(.*)echo "\$res"/$1echo "\$res-Wild-MarionKernel"/s' ./common/scripts/setlocalversion
               ;;

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

@@ -6,6 +6,7 @@ permissions:
 
 on:
   workflow_call:
+  push:
     inputs:
       ksu_commit:
         required: false

+ 55 - 0
.github/workflows/kernel-testing.yml

@@ -0,0 +1,55 @@
+name: Kernel Testing
+
+on:
+  workflow_dispatch:
+  push:
+    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
+      feature_set:
+        required: true
+        type: string
+      build_bypass:
+        required: true
+        type: boolean
+
+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
+    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...