Skip to content

Commit

Permalink
CI: Fixes & Updates (#125)
Browse files Browse the repository at this point in the history
* CI: Setup KernelSU: Remove KernelSU repository included in kernel source

If the kernel source code contains a KernelSU repository (or submodule),
this will cause an error when performing the Setup KernelSU step.

error: pathspec 'main' did not match any file(s) known to git
From: https://github.com/xiaoleGun/KernelSU_Action/issues/123#issue-2089859718

Signed-off-by: bdqllW <[email protected]>

* CI: Add KernelSU version number in upload name

Show in uploads or artifacts

Signed-off-by: bdqllW <[email protected]>

---------

Signed-off-by: bdqllW <[email protected]>
  • Loading branch information
bxySo committed Jan 24, 2024
1 parent bb17a21 commit bd7c7cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build-kernel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,10 @@ jobs:
if: env.ENABLE_KERNELSU == 'true'
run: |
cd $GITHUB_WORKSPACE/kernel_workspace/android-kernel
rm -rf KernelSU drivers/kernelsu
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -s ${{ env.KERNELSU_TAG }}
echo "UPLOADNAME=-KernelSU" >> $GITHUB_ENV
KSU_VERSION=$(cd KernelSU && expr $(/usr/bin/git rev-list --count HEAD) + 10200)
echo "UPLOADNAME=-KernelSU_$KSU_VERSION" >> $GITHUB_ENV
- name: Setup Configuration for Kernel
run: |
Expand Down

0 comments on commit bd7c7cb

Please sign in to comment.