ソースを参照

ci(github-actions): simplify action inputs and set CONFIG_TRIM_UNUSED_KSYMS

Remove explicit type declarations from optional string inputs as they are the default.
Consolidate kernel config comment into a direct setting.
Add step to ensure CONFIG_TRIM_UNUSED_KSYMS=n is present in the GKI fragment.
TheWildJames 4 ヶ月 前
コミット
d20f59b268

+ 0 - 10
.github/actions/apply-kernel-branding/action.yml

@@ -1,16 +1,6 @@
 name: 'Apply Kernel Branding & Timestamp'
 description: 'Apply Wild kernel branding to kernel version string'
 
-inputs:
-  build_type:
-    required: false
-    type: string
-    default: ""
-  kernel_version:
-    required: false
-    type: string
-    default: ""
-
 runs:
   using: "composite"
   steps:

+ 5 - 0
.github/actions/build-kernel/action.yml

@@ -9,6 +9,11 @@ runs:
       run: |
         set -euo pipefail
 
+        if [ -f "$GITHUB_WORKSPACE/wild_gki.fragment" ]; then
+          sed -i '/^CONFIG_TRIM_UNUSED_KSYMS=/d' "$GITHUB_WORKSPACE/wild_gki.fragment"
+          printf '%s\n' 'CONFIG_TRIM_UNUSED_KSYMS=n' >> "$GITHUB_WORKSPACE/wild_gki.fragment"
+        fi
+
         if [ -f "build/build.sh" ]; then
           GKI_DEFCONFIG_FRAGMENT="$GITHUB_WORKSPACE/wild_gki.fragment" BUILD_CONFIG=common/build.config.gki.aarch64 build/build.sh
           exit 0

+ 0 - 1
.github/actions/kernelsu/action.yml

@@ -4,7 +4,6 @@ inputs:
   ksu_commit:
     description: "KernelSU-Next ref/commit (optional, defaults to dev)"
     required: false
-    type: string
     default: ""
 
 runs:

+ 1 - 2
.github/actions/misc/action.yml

@@ -24,6 +24,5 @@ runs:
         CONFIG_KALLSYMS=y
         CONFIG_KALLSYMS_ALL=y
 
-        # Improve General Compatibility
-        # CONFIG_TRIM_UNUSED_KSYMS is not set
+        CONFIG_TRIM_UNUSED_KSYMS=n
         EOF

+ 0 - 2
.github/actions/setup-build-environment/action.yml

@@ -3,10 +3,8 @@ description: 'Clones dependencies and exports mkbootimg/avbtool paths'
 inputs:
   patches_commit:
     required: false
-    type: string
   anykernel_commit:
     required: false
-    type: string
 
 runs:
   using: composite