5050 run : |
5151 set -euo pipefail
5252 echo "::group::Validate inputs"
53-
5453 model='${{ inputs.model }}'
5554 soc='${{ inputs.soc }}'
5655 branch='${{ inputs.branch }}'
9291 case "$optimize" in
9392 O2|O3) ;;
9493 *) echo "optimize_level must be O2 or O3; got '$optimize'"; exit 1 ;;
95- esac
94+ esac
9695 echo "Input validation OK."
9796 echo "::endgroup::"
9897
@@ -207,6 +206,8 @@ runs:
207206 cd susfs4ksu
208207 if git rev-parse --verify "origin/$SUSFS_BRANCH" >/dev/null 2>&1 || git rev-parse --verify "$SUSFS_BRANCH" >/dev/null 2>&1; then
209208 git checkout "$SUSFS_BRANCH"
209+ SUSFS_COMMIT_SHA=$(git rev-parse HEAD)
210+ echo "SUSFS_COMMIT_SHA=$SUSFS_COMMIT_SHA" >> $GITHUB_ENV
210211 else
211212 echo "Error: SUSFS branch or ref '$SUSFS_BRANCH' not found."
212213 exit 1
@@ -243,6 +244,10 @@ runs:
243244 curl --fail --location --proto '=https' -LSs "https://raw.githubusercontent.com/KernelSU-Next/KernelSU-Next/next/kernel/setup.sh" | bash -s "${{ inputs.ksun_branch }}"
244245 fi
245246 git submodule update --init --recursive
247+ cd KernelSU-Next
248+ KSUN_COMMIT_SHA=$(git rev-parse HEAD)
249+ echo "KSUN_COMMIT_SHA=$KSUN_COMMIT_SHA" >> $GITHUB_ENV
250+ cd ..
246251
247252 - name : Apply SUSFS Patches
248253 shell : bash
@@ -338,7 +343,6 @@ runs:
338343 cd "../KernelSU-Next"
339344 patch -p1 --forward < "../../../kernel_patches/maps/xx_maps_ksu.patch"
340345
341-
342346 - name : Add KernelSU-Next and SUSFS Configuration Settings
343347 shell : bash
344348 run : |
@@ -580,7 +584,7 @@ runs:
580584
581585 # Output for later steps (optional)
582586 echo "zip_name=$ZIP_NAME" >> "$GITHUB_OUTPUT"
583-
587+
584588 - name : Final Build Summary
585589 shell : bash
586590 run : |
@@ -591,10 +595,10 @@ runs:
591595 echo "Kernel base: ${{ env.KERNEL_VER }}"
592596 echo "Kernel full: ${{ env.KERNEL_FULL_VER }}"
593597 echo "Kernel Uname: ${{ env.KERNEL_UNAME }}"
594- echo "KSU Version: ${KSUVER:-unknown}"
595- echo "KSU branch/ commit: ${{ inputs.ksun_branch || 'stable' }}"
598+ echo "KSUN Version: ${KSUVER:-unknown}"
599+ echo "KSUN commit SHA : ${{ env.KSUN_COMMIT_SHA }}"
596600 echo "SUSFS Version: ${SUSVER:-unknown}"
597- echo "SUSFS branch/ commit: ${{ inputs.susfs_commit_hash_or_branch || env.SUSFS_KERNEL_BRANCH }}"
601+ echo "SUSFS commit SHA : ${{ env.SUSFS_COMMIT_SHA }}"
598602 echo "Optimization: ${{ inputs.optimize_level }}"
599603 echo "Image SHA256: ${{ steps.collect_stats.outputs.image_sha256 }}"
600604 echo "Compiler: ${CLANG_VERSION:-unknown}"
@@ -607,15 +611,15 @@ runs:
607611 echo "- Android: ${{ env.ANDROID_VER }}"
608612 echo "- Kernel Version: ${{ steps.save_metadata.outputs.kernel_version }}"
609613 echo "- Kernel Uname: ${{ env.KERNEL_UNAME }}"
610- echo "- KSU Version: ${KSUVER:-unknown}"
611- echo "- KSU branch/ commit: [${{ inputs.ksun_branch || 'stable' }}](https://github.com/KernelSU-Next/KernelSU-Next/tree /${{ inputs.ksun_branch || 'stable' }})"
612- echo "- SUSFS Version: ${SUSVER:-unknown }"
613- echo "- SUSFS branch/ commit: [${{ inputs.susfs_commit_hash_or_branch || env.SUSFS_KERNEL_BRANCH }}](https://gitlab.com/simonpunk/susfs4ksu/-/tree /${{ inputs.susfs_commit_hash_or_branch || env.SUSFS_KERNEL_BRANCH }})"
614+ echo "- KSUN Version: ${KSUVER:-unknown}"
615+ echo "- KSUN commit SHA : [${{ env.KSUN_COMMIT_SHA }}](https://github.com/KernelSU-Next/KernelSU-Next/commit /${{ env.KSUN_COMMIT_SHA }})"
616+ echo "- SUSFS Version: ${SUSVER:-unknown}"
617+ echo "- SUSFS commit SHA : [${{ env.SUSFS_COMMIT_SHA }}](https://gitlab.com/simonpunk/susfs4ksu/-/commit /${{ env.SUSFS_COMMIT_SHA }})"
614618 echo "- Optimization: ${{ inputs.optimize_level }}"
615619 echo "- Image SHA256: ${{ steps.collect_stats.outputs.image_sha256 }}"
616620 echo "- Warnings Count: ${{ steps.collect_stats.outputs.warnings_count }}"
617621 } >> "$GITHUB_STEP_SUMMARY"
618-
622+
619623 - name : Upload Artifacts
620624 if : success() && steps.create_zip.conclusion == 'success'
621625 uses : actions/upload-artifact@v4
0 commit comments