|
|
@@ -7,8 +7,8 @@ runs:
|
|
|
steps:
|
|
|
- name: Setup KSUN
|
|
|
shell: bash
|
|
|
- working-directory: $COMMON
|
|
|
run: |
|
|
|
+ cd "$COMMON"
|
|
|
curl -LSs "https://raw.githubusercontent.com/KernelSU-Next/KernelSU-Next/next/kernel/setup.sh" | bash -s dev
|
|
|
|
|
|
cd KernelSU-Next
|
|
|
@@ -28,3 +28,18 @@ runs:
|
|
|
# KernelSU Configuration
|
|
|
CONFIG_KSU=y
|
|
|
EOF
|
|
|
+
|
|
|
+ - name: Extract KSU Version Info
|
|
|
+ id: ksu-version
|
|
|
+ shell: bash
|
|
|
+ working-directory: ${{ github.workspace }}/kernel/KernelSU-Next
|
|
|
+ run: |
|
|
|
+ # Extract and export KSU version info
|
|
|
+ KSU_GIT_VERSION=$(git rev-list --count HEAD 2>/dev/null)
|
|
|
+ KSU_GIT_TAG=$(git describe --tags --abbrev=0 2>/dev/null)
|
|
|
+ KSU_COMMIT=$(git rev-parse --short HEAD 2>/dev/null)
|
|
|
+ KSU_VERSION=$((30000 + KSU_GIT_VERSION))
|
|
|
+
|
|
|
+ echo "KSU_GIT_TAG=$KSU_GIT_TAG" >> $GITHUB_ENV
|
|
|
+ echo "KSU_VERSION=$KSU_VERSION" >> $GITHUB_ENV
|
|
|
+ echo "KSU_COMMIT=$KSU_COMMIT" >> $GITHUB_ENV
|