Skip to content

Commit

Permalink
CI: Add patch check by using build kernel x86-64 and arm64
Browse files Browse the repository at this point in the history
Modify a GitHub action workflow to check pull requests and push by build kernel
  • Loading branch information
opsiff authored and MingcongBai committed Jun 28, 2024
1 parent acbfe52 commit e3d8c7a
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build-kernel.yml
Original file line number Diff line number Diff line change
@@ -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: [email protected]

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)

0 comments on commit e3d8c7a

Please sign in to comment.