Explorar el Código

ci: build single NoMount metamodule per variant workflow run

TheWildJames hace 3 semanas
padre
commit
527cf37bd6
Se han modificado 2 ficheros con 26 adiciones y 21 borrados
  1. 2 19
      .github/workflows/build.yml
  2. 24 2
      .github/workflows/root-variants.yml

+ 2 - 19
.github/workflows/build.yml

@@ -275,13 +275,6 @@ jobs:
         commit: ${{ inputs.nomount_commit }}
         kernel_version: ${{ inputs.kernel_version }}
 
-    - name: Build matching NoMount metamodule
-      id: nomount-metamodule
-      if: ${{ inputs.root_flavor != '' && inputs.nomount_commit != '' }}
-      uses: ./.github/actions/nomount-metamodule
-      with:
-        commit: ${{ inputs.nomount_commit }}
-
     - name: Apply ABI Compare Bypass
       if: false
       working-directory: ${{ github.workspace }}/kernel
@@ -557,16 +550,6 @@ jobs:
         if-no-files-found: ignore
         compression-level: 9
 
-    - name: Upload NoMount metamodule
-      id: nomount-metamodule-artifact
-      if: ${{ inputs.root_flavor != '' && inputs.nomount_commit != '' }}
-      uses: actions/upload-artifact@v7
-      with:
-        name: ${{ steps.extract.outputs.file_name }}-NoMount-Metamodule
-        path: ${{ steps.nomount-metamodule.outputs.module_path }}
-        if-no-files-found: error
-        compression-level: 0
-
     - name: Write Build-verified only artifact metadata
       if: ${{ success() && inputs.root_flavor != '' && inputs.nomount_commit != '' }}
       shell: bash
@@ -599,7 +582,7 @@ jobs:
           resolve_artifact "${{ steps.extract.outputs.file_name }}-AnyKernel3"
         )
         read -r nomount_module_url nomount_module_sha256 < <(
-          resolve_artifact "${{ steps.extract.outputs.file_name }}-NoMount-Metamodule"
+          resolve_artifact "NoMount-Metamodule"
         )
 
         jq -n \
@@ -616,7 +599,7 @@ jobs:
           --arg provenance_url "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
           --arg artifact_url "$kernel_artifact_url" \
           --arg sha256 "$kernel_artifact_sha256" \
-          --arg nomount_module_commit "${{ steps.nomount-metamodule.outputs.commit }}" \
+          --arg nomount_module_commit "${{ inputs.nomount_commit }}" \
           --arg nomount_module_url "$nomount_module_url" \
           --arg nomount_module_sha256 "$nomount_module_sha256" \
           --arg status "Build-verified only" \

+ 24 - 2
.github/workflows/root-variants.yml

@@ -32,11 +32,13 @@ jobs:
     outputs:
       config_file: ${{ steps.pins.outputs.config_file }}
       susfs_commit: ${{ steps.pins.outputs.susfs_commit }}
+      nomount_commit: ${{ steps.pins.outputs.nomount_commit }}
     steps:
       - id: pins
         shell: bash
         run: |
           set -euo pipefail
+          nomount_commit="c52936b229c25a4b0e41b6627f7d3bc5eaaaf2b5"
           case "${{ inputs.kernel_build_version }}" in
             android12-5.10) susfs_commit="3c14ad549f826b1f53878ec8c12253efebeed75a" ;;
             android13-5.10) susfs_commit="f81aaf10e9560282052bb61dd931315c2ca3e617" ;;
@@ -49,9 +51,29 @@ jobs:
           esac
           echo "config_file=.github/config/${{ inputs.kernel_build_version }}.json" >> "$GITHUB_OUTPUT"
           echo "susfs_commit=$susfs_commit" >> "$GITHUB_OUTPUT"
+          echo "nomount_commit=$nomount_commit" >> "$GITHUB_OUTPUT"
 
-  build:
+  build-nomount-module:
     needs: resolve-pins
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v7
+
+      - name: Build NoMount metamodule
+        id: nomount-metamodule
+        uses: ./.github/actions/nomount-metamodule
+        with:
+          commit: ${{ needs.resolve-pins.outputs.nomount_commit }}
+
+      - name: Upload NoMount metamodule
+        uses: actions/upload-artifact@v7
+        with:
+          name: NoMount-Metamodule
+          path: ${{ steps.nomount-metamodule.outputs.module_path }}
+          if-no-files-found: error
+
+  build:
+    needs: [resolve-pins, build-nomount-module]
     strategy:
       fail-fast: false
       matrix:
@@ -72,7 +94,7 @@ jobs:
       susfs_commit: ${{ needs.resolve-pins.outputs.susfs_commit }}
       root_flavor: ${{ matrix.flavor }}
       root_commit: ${{ matrix.commit }}
-      nomount_commit: c52936b229c25a4b0e41b6627f7d3bc5eaaaf2b5
+      nomount_commit: ${{ needs.resolve-pins.outputs.nomount_commit }}
       preserve_abi: true
       build_bypass: false
       os_patch_level: ${{ inputs.os_patch_level }}