Skip to content

Commit

Permalink
CI: Add patch check by using build kernel
Browse files Browse the repository at this point in the history
Modify a GitHub action workflow to check pull requests by make kernel compile
Modify the build kernel action workflow to self-host-runner build kernel
  • Loading branch information
opsiff committed Jun 5, 2024
1 parent 6ef88bf commit a6e708f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build-kernel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build kernel
on:
push:
pull_request:
workflow_dispatch:

env:
KBUILD_BUILD_USER: deepin-kernel-sig
KBUILD_BUILD_HOST: deepin-kernel-builder
email: [email protected]

permissions:
pull-requests: read

jobs:
build-kernel:
runs-on: [self-hosted, linux]
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)

0 comments on commit a6e708f

Please sign in to comment.