diff --git a/.github/workflows/Build-mKSU-SUSFS.yml b/.github/workflows/Build-mKSU-SUSFS.yml index 6b18c034..b52514ca 100644 --- a/.github/workflows/Build-mKSU-SUSFS.yml +++ b/.github/workflows/Build-mKSU-SUSFS.yml @@ -27,6 +27,11 @@ on: required: true type: boolean default: false + MKSU-SKN_ENABLED: + description: "添加 mKSU-SKN" + required: true + type: boolean + default: false SUSFS_ENABLED: description: "添加 SUSFS" required: true @@ -91,6 +96,19 @@ jobs: KSU_VERSION=$(expr $(/usr/bin/git rev-list --count HEAD) "+" 10200) echo "KSUVER=$KSU_VERSION" >> $GITHUB_ENV sed -i "s/DKSU_VERSION=16/DKSU_VERSION=${KSU_VERSION}/" kernel/Makefile + + - name: Set up mKernelSU-SKN + if: github.event.inputs.MKSU-SKN_ENABLED == 'true' + run: | + cd kernel_workspace/kernel_platform + curl -LSs "https://raw.githubusercontent.com/ShirkNeko/KernelSU/refs/heads/main/kernel/setup.sh" | bash - + cd KernelSU + git revert -m 1 $(git log --grep="remove devpts hook" --pretty=format:"%h") -n + KSU_VERSION=$(expr $(/usr/bin/git rev-list --count HEAD) "+" 10200) + echo "KSUVER=$KSU_VERSION" >> $GITHUB_ENV + sed -i "s/DKSU_VERSION=16/DKSU_VERSION=${KSU_VERSION}/" kernel/Makefile + + - name: Set up susfs if: github.event.inputs.SUSFS_ENABLED == 'true'