From 3a79cf64a099efbd6e1d52409db49260ebd1aac6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=98=E6=80=80?= Date: Fri, 14 Jun 2024 14:01:32 +0000 Subject: [PATCH] CI: package daily build kernel --- .../workflows/package-kernel-amd64-daily.yml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/package-kernel-amd64-daily.yml diff --git a/.github/workflows/package-kernel-amd64-daily.yml b/.github/workflows/package-kernel-amd64-daily.yml new file mode 100644 index 0000000000000..5902521bfe633 --- /dev/null +++ b/.github/workflows/package-kernel-amd64-daily.yml @@ -0,0 +1,34 @@ +name: package kernel amd64 daily +on: + schedule: + - cron: "0 2 * * *" + +env: + KBUILD_BUILD_USER: deepin-kernel-sig + KBUILD_BUILD_HOST: deepin-kernel-builder + email: support@deepin.org + +permissions: + pull-requests: read + +jobs: + build-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 bindeb-pkg -j$(nproc) + + - name: 'Upload Kernel Artifact' + uses: actions/upload-artifact@v3 + with: + name: kernel-amd64-deb + path: "../*.deb"