diff --git a/.github/workflows/build-kernel.yml b/.github/workflows/build-kernel.yml new file mode 100644 index 00000000000000..491d3aca1222ad --- /dev/null +++ b/.github/workflows/build-kernel.yml @@ -0,0 +1,44 @@ +name: build kernel +on: + push: + pull_request: + workflow_dispatch: + +env: + KBUILD_BUILD_USER: deepin-kernel-sig + KBUILD_BUILD_HOST: deepin-kernel-builder + email: support@deepin.org + +permissions: + pull-requests: read + +jobs: + build-x86-kernel: + runs-on: [self-hosted, linux, x64] + steps: + - uses: actions/checkout@v3 + - name: "Install Deps" + run: | + git config --global user.email $email + git config --global user.name $KBUILD_BUILD_USER + + - name: "Compile kernel" + run: | + # .config + make deepin_x86_desktop_defconfig + make -j$(nproc) + + build-arm64-kernel: + runs-on: [self-hosted, linux, ARM64] + steps: + - uses: actions/checkout@v3 + - name: "Install Deps" + run: | + git config --global user.email $email + git config --global user.name $KBUILD_BUILD_USER + + - name: "Compile kernel" + run: | + # .config + make deepin_arm64_desktop_defconfig + make -j$(nproc)