trae před 3 měsíci
rodič
revize
b452dec52e
2 změnil soubory, kde provedl 10 přidání a 1 odebrání
  1. 9 0
      .github/actions/susfs/action.yml
  2. 1 1
      .github/workflows/build.yml

+ 9 - 0
.github/actions/susfs/action.yml

@@ -167,6 +167,15 @@ runs:
               if ($l[$i] =~ /last_vma_end = vma->vm_end;/) {
                   $l[$i] = "\t\t\t\t" . $l[$i];
                   splice(@l, $i + 1, 0, "\t\t\t}");
+
+                  # add { to the if line above
+                  for ($j = $i; $j >= 0; $j--) {
+                      if ($l[$j] =~ /if\s*\(vma->vm_end > last_vma_end\)/) {
+                          $l[$j] =~ s/\)\s*$/) {/;
+                          last;
+                      }
+                  }
+
                   last;
               }
           }

+ 1 - 1
.github/workflows/build.yml

@@ -67,7 +67,7 @@ jobs:
     - name: Setup more Swap (for LTO)
       uses: thejerrybao/setup-swap-space@v1   # or pierotofy/set-swap-space
       with:
-        swap-size-gb: 10          # 10-24 GB is common for heavy LTO
+        swap-size-gb: 16          # 10-24 GB is common for heavy LTO
         # swap-space-path: /mnt/swapfile   # optional
 
     - name: Setup Build Environment