From a9ec605b21d0c04fb43f6bdc01270af07c80b736 Mon Sep 17 00:00:00 2001 From: mofanx <93850573+mofanx@users.noreply.github.com> Date: Wed, 27 Mar 2024 09:08:54 +0800 Subject: [PATCH] Update build-clang12_self.yml --- .github/workflows/build-clang12_self.yml | 39 +----------------------- 1 file changed, 1 insertion(+), 38 deletions(-) diff --git a/.github/workflows/build-clang12_self.yml b/.github/workflows/build-clang12_self.yml index c6e8746..da3a5bc 100644 --- a/.github/workflows/build-clang12_self.yml +++ b/.github/workflows/build-clang12_self.yml @@ -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/ccache-action@v1.2