Skip to content

Commit 6f079a8

Browse files
committed
github actions: Make Builds on Merge Request Work
Setting up the default build configs to ensure everything builds when we update and rebase.
1 parent 59a132d commit 6f079a8

6 files changed

+204
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: aarch64-64k-debug 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-arm64
12+
container:
13+
image: rockylinux:9
14+
env:
15+
ROCKY_ENV: rocky9
16+
ports:
17+
- 80
18+
options: --cpus 8
19+
steps:
20+
- name: Install tools and Libraries
21+
run: |
22+
dnf groupinstall 'Development Tools' -y
23+
dnf install --enablerepo=crb bc dwarves kernel-devel openssl-devel elfutils-libelf-devel -y
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
with:
27+
ref: "${{ github.event.pull_request.head.sha }}"
28+
fetch-depth: 0
29+
- name: Build the Kernel
30+
run: |
31+
git config --global --add safe.directory /__w/kernel-src-tree/kernel-src-tree
32+
cp configs/kernel-aarch64-64k-debug.config .config
33+
make olddefconfig
34+
make -j$(nproc)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: aarch64-64k 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-arm64
12+
container:
13+
image: rockylinux:9
14+
env:
15+
ROCKY_ENV: rocky9
16+
ports:
17+
- 80
18+
options: --cpus 8
19+
steps:
20+
- name: Install tools and Libraries
21+
run: |
22+
dnf groupinstall 'Development Tools' -y
23+
dnf install --enablerepo=crb bc dwarves kernel-devel openssl-devel elfutils-libelf-devel -y
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
with:
27+
ref: "${{ github.event.pull_request.head.sha }}"
28+
fetch-depth: 0
29+
- name: Build the Kernel
30+
run: |
31+
git config --global --add safe.directory /__w/kernel-src-tree/kernel-src-tree
32+
cp configs/kernel-aarch64-64k.config .config
33+
make olddefconfig
34+
make -j$(nproc)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: aarch64-debug 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-arm64
12+
container:
13+
image: rockylinux:9
14+
env:
15+
ROCKY_ENV: rocky9
16+
ports:
17+
- 80
18+
options: --cpus 8
19+
steps:
20+
- name: Install tools and Libraries
21+
run: |
22+
dnf groupinstall 'Development Tools' -y
23+
dnf install --enablerepo=crb bc dwarves kernel-devel openssl-devel elfutils-libelf-devel -y
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
with:
27+
ref: "${{ github.event.pull_request.head.sha }}"
28+
fetch-depth: 0
29+
- name: Build the Kernel
30+
run: |
31+
git config --global --add safe.directory /__w/kernel-src-tree/kernel-src-tree
32+
cp configs/kernel-aarch64-debug.config .config
33+
make olddefconfig
34+
make -j$(nproc)
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: aarch64 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-arm64
12+
container:
13+
image: rockylinux:9
14+
env:
15+
ROCKY_ENV: rocky9
16+
ports:
17+
- 80
18+
options: --cpus 8
19+
steps:
20+
- name: Install tools and Libraries
21+
run: |
22+
dnf groupinstall 'Development Tools' -y
23+
dnf install --enablerepo=crb bc dwarves kernel-devel openssl-devel elfutils-libelf-devel -y
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
with:
27+
ref: "${{ github.event.pull_request.head.sha }}"
28+
fetch-depth: 0
29+
- name: Build the Kernel
30+
run: |
31+
git config --global --add safe.directory /__w/kernel-src-tree/kernel-src-tree
32+
cp configs/kernel-aarch64.config .config
33+
make olddefconfig
34+
make -j$(nproc)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: x86_64-debug 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: rockylinux:9
14+
env:
15+
ROCKY_ENV: rocky9
16+
ports:
17+
- 80
18+
options: --cpus 8
19+
steps:
20+
- name: Install tools and Libraries
21+
run: |
22+
dnf groupinstall 'Development Tools' -y
23+
dnf install --enablerepo=crb bc dwarves kernel-devel openssl-devel elfutils-libelf-devel -y
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
with:
27+
ref: "${{ github.event.pull_request.head.sha }}"
28+
fetch-depth: 0
29+
- name: Build the Kernel
30+
run: |
31+
git config --global --add safe.directory /__w/kernel-src-tree/kernel-src-tree
32+
cp configs/kernel-x86_64-debug.config .config
33+
make olddefconfig
34+
make -j$(nproc)
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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: rockylinux:9
14+
env:
15+
ROCKY_ENV: rocky9
16+
ports:
17+
- 80
18+
options: --cpus 8
19+
steps:
20+
- name: Install tools and Libraries
21+
run: |
22+
dnf groupinstall 'Development Tools' -y
23+
dnf install --enablerepo=crb bc dwarves kernel-devel openssl-devel elfutils-libelf-devel -y
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
with:
27+
ref: "${{ github.event.pull_request.head.sha }}"
28+
fetch-depth: 0
29+
- name: Build the Kernel
30+
run: |
31+
git config --global --add safe.directory /__w/kernel-src-tree/kernel-src-tree
32+
cp configs/kernel-x86_64.config .config
33+
make olddefconfig
34+
make -j$(nproc)

0 commit comments

Comments
 (0)