Skip to content

Commit 125ee51

Browse files
committed
github actions: Make builds on Merge Request
Since we need to make sure external contributors code actually compiles prior to merging. To get access to the forked repos merge request we need to switch over our push to pull_request. In addition we're fixing up some Naming Conventions, adding aarch64 to this branch and fixing the naming so that we can quickly identify if the CI is for x86_64. Also disable the process-pull-request until the `utf-8` situation is resolved.
1 parent baf603e commit 125ee51

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: x86_64 CI
2+
on:
3+
pull_request:
4+
branches:
5+
- '**'
6+
- '!mainline'
7+
8+
jobs:
9+
kernel-build-job:
10+
runs-on:
11+
labels: kernel-build
12+
container:
13+
image: docker://quay.io/centos/centos:centos7.9.2009
14+
ports:
15+
- 80
16+
options: --cpus 8
17+
steps:
18+
- name: Install tools and Libraries
19+
run: |
20+
dnf update -y
21+
dnf groupinstall 'Development Tools' -y
22+
dnf install --enablerepo=devel bc dwarves kernel-devel openssl-devel elfutils-libelf-devel -y
23+
- name: Checkout code
24+
uses: actions/checkout@v4
25+
with:
26+
ref: "${{ github.event.pull_request.head.sha }}"
27+
fetch-depth: 0
28+
- name: Build the Kernel
29+
run: |
30+
git config --global --add safe.directory /__w/kernel-src-tree/kernel-src-tree
31+
cp configs/kernel-3.10.0-x86_64.config .config
32+
make olddefconfig
33+
make -j8

0 commit comments

Comments
 (0)