Skip to content

Commit c5b1d59

Browse files
nirmoynvmochs
authored andcommitted
NVIDIA: SAUCE: Build kernel on PR
Build kernel for each PR for this branch as sanity test. This will do build test for arm64 with 64k and 4k page_size and for x86 defonfig using annotations. Signed-off-by: Nirmoy Das <nirmoyd@nvidia.com> Acked-by: Carol L. Soto <csoto@nvidia.com> Acked-by: Matthew R. Ochs <mochs@nvidia.com> Signed-off-by: Matthew R. Ochs <mochs@nvidia.com>
1 parent 3196373 commit c5b1d59

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/pr-build.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Kernel Build
2+
3+
on:
4+
pull_request:
5+
branches: [ "*" ]
6+
7+
jobs:
8+
build:
9+
name: ${{ matrix.arch == 'amd64' && 'x86_64' || 'ARM64' }} - ${{ matrix.flavour }}
10+
runs-on: ${{ matrix.runs-on }}
11+
strategy:
12+
matrix:
13+
include:
14+
- runs-on: ubuntu-latest
15+
arch: amd64
16+
flavour: nvidia
17+
- runs-on: ubuntu-24.04-arm
18+
arch: arm64
19+
flavour: nvidia
20+
- runs-on: ubuntu-24.04-arm
21+
arch: arm64
22+
flavour: nvidia-64k
23+
steps:
24+
- uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0
27+
28+
- name: Install Dependencies
29+
run: |
30+
sudo apt-get update
31+
sudo apt-get install -y build-essential libncurses-dev bison flex libssl-dev libelf-dev python3
32+
33+
- name: Configure Kernel
34+
run: |
35+
debian/scripts/misc/annotations --arch ${{ matrix.arch }} --flavour ${{ matrix.flavour }} --export > .config
36+
make oldconfig
37+
# Ensure WERROR is disabled
38+
./scripts/config --disable CONFIG_WERROR
39+
# Disable certificate verification
40+
./scripts/config --disable SYSTEM_TRUSTED_KEYS
41+
./scripts/config --disable SYSTEM_REVOCATION_KEYS ""
42+
43+
- name: Build Kernel
44+
run: |
45+
make -j$(nproc)

0 commit comments

Comments
 (0)