Просмотр исходного кода

ci(networking): conditionally apply BBRv3 patch for kernel 6.1

Update the networking GitHub Action to apply the BBRv3 patch only when building for kernel version 6.1, instead of always being disabled. The patch is now fetched directly from a public repository to ensure the latest version is used.
TheWildJames 4 месяцев назад
Родитель
Сommit
722f4e158e
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      .github/actions/networking/action.yml

+ 4 - 3
.github/actions/networking/action.yml

@@ -12,12 +12,13 @@ runs:
   using: "composite"
   steps:
     - name: Patch with BBRv3
-      if: false
+      if: inputs.kernel_version == '6.1'
       shell: bash
       working-directory: ${{ github.workspace }}/kernel/common
       run: |
-        cp "$GITHUB_WORKSPACE/kernel_patches/bbr/bbrv3-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch" "$GITHUB_WORKSPACE/kernel/common"
-        patch -p1 < "bbrv3-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch"
+        set -euo pipefail
+        curl -L -o bbrv3.patch "https://github.com/ahmed-alnassif/GKI-Duchamp/blob/dev/kernel-patches/bbrv3/bbrv3.patch?raw=1"
+        patch -p1 --forward < bbrv3.patch
 
     - name: Fix modules.bzl
       shell: bash