Преглед на файлове

Initialize SCRIPT_LTO based on LTO input

Added logic to initialize SCRIPT_LTO based on LTO value.
jimsterino98 преди 2 седмици
родител
ревизия
58e6f29241
променени са 1 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. 8 0
      .github/actions/build/action.yml

+ 8 - 0
.github/actions/build/action.yml

@@ -57,6 +57,14 @@ runs:
     run: |
      set -e
      set -x
+     # 1. Initialize variables as empty (clears them out for "default")
+     SCRIPT_LTO=""
+
+     # 2. Only populate if explicit modifications are requested
+     if [[ "$LTO" == "thin" || "$LTO" == "full" ]]; then
+       SCRIPT_LTO="LTO=$LTO"
+     fi
+     
      cd "$CONFIG"
      if [[ -f build_kernel_GKI.sh ]]; then
       chmod +x build_kernel_GKI.sh