-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,44 +41,7 @@ jobs: | |
run: | | ||
cd $GITHUB_WORKSPACE/kernel_workspace | ||
git clone ${{ env.KERNEL_SOURCE }} -b ${{ env.KERNEL_SOURCE_BRANCH }} android-kernel --depth=1 | ||
- name: 开启lxc和docker配置 | ||
if: env.ENABLE_LXC_DOCKER == 'true' | ||
run: | | ||
cd $GITHUB_WORKSPACE/kernel_workspace | ||
wget https://github.com/fate-think/LXC-DOCKER-KernelSU_Action/releases/download/1.0.0/add-lxc-docker-custom.sh | ||
chmod 755 add-lxc-docker-custom.sh | ||
./add-lxc-docker-custom.sh android-kernel/arch/arm64/configs/${{ env.KERNEL_CONFIG }} | ||
echo "# CONFIG_ANDROID_PARANOID_NETWORK is not set" >> android-kernel/arch/arm64/configs/${{ env.KERNEL_CONFIG }} | ||
- name: 添加runc补丁 | ||
if: env.ENABLE_LXC_DOCKER == 'true' | ||
run: | | ||
cd $GITHUB_WORKSPACE/kernel_workspace | ||
wget https://github.com/fate-think/LXC-DOCKER-KernelSU_Action/releases/download/1.0.0/runcpatch.sh | ||
chmod a+x runcpatch.sh | ||
if [ -f android-kernel/kernel/cgroup.c ]; then | ||
./runcpatch.sh android-kernel/kernel/cgroup.c | ||
fi | ||
if [ -f android-kernel/kernel/cgroup/cgroup.c ]; then | ||
./runcpatch.sh android-kernel/kernel/cgroup/cgroup.c | ||
fi | ||
- name: 配置 ksu | ||
if: env.ENABLE_KERNELSU == 'true' | ||
run: | | ||
cd $GITHUB_WORKSPACE/kernel_workspace/android-kernel | ||
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -s ${{ env.KERNELSU_TAG }} | ||
- name: 开启kvm | ||
if: env.ENABLE_KVM == 'true' | ||
run: | | ||
cd $GITHUB_WORKSPACE/kernel_workspace | ||
echo "CONFIG_VIRTUALIZATION=y" >> android-kernel/arch/arm64/configs/${{ env.KERNEL_CONFIG }} | ||
echo "CONFIG_KVM=y" >> android-kernel/arch/arm64/configs/${{ env.KERNEL_CONFIG }} | ||
echo "CONFIG_VHOST_NET=y" >> android-kernel/arch/arm64/configs/${{ env.KERNEL_CONFIG }} | ||
echo "CONFIG_VHOST_CROSS_ENDIAN_LEGACY=y" >> android-kernel/arch/arm64/configs/${{ env.KERNEL_CONFIG }} | ||
- name: 设置ccache缓存 | ||
uses: hendrikmuhs/[email protected] | ||
|