Skip to content

Commit

Permalink
Update build-clang12_self.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mofanx authored Mar 27, 2024
1 parent c3779f8 commit a9ec605
Showing 1 changed file with 1 addition and 38 deletions.
39 changes: 1 addition & 38 deletions .github/workflows/build-clang12_self.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit a9ec605

Please sign in to comment.