Skip to content

Commit

Permalink
feat: Centos Stream 9 linux-build.yml support.
Browse files Browse the repository at this point in the history
Co-authored-by: Andrea Michelotti [email protected]
  • Loading branch information
jerzyjamroz committed Nov 13, 2024
1 parent e1377f8 commit 99ce78e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ jobs:
series: 6.x
version: 6.5.9

- name: Ubuntu 22.04 - Centos Stream 9 Linux kernel
os: ubuntu-22.04
series: 6.x
version: Centos Stream 9 Linux kernel
alt_kernel: true
url: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9

steps:
- uses: actions/checkout@v2
- name: Info
Expand All @@ -48,6 +55,7 @@ jobs:
sudo apt-get -y install linux-headers-`uname -r` kmod libelf-dev
[ "${{ matrix.cc }}" != "gcc-4.8" ] || sudo apt-get -y install gcc-4.8
- name: Setup Linux
if: ${{ ! matrix.alt_kernel }}
run: |
install -d kernel
if [ "$KSER" == "latest" ]; then
Expand All @@ -60,10 +68,20 @@ jobs:
curl -s https://cdn.kernel.org/pub/linux/kernel/v$KSER/linux-$KVER.tar.xz | tar -C kernel --strip-components=1 -xJ
make -C kernel CC=${CC:=gcc} defconfig
make -C kernel CC=${CC:=gcc} modules_prepare
- name: Setup Centos Stream 9 kernel source
if: ${{ matrix.alt_kernel }}
run: |
install -d kernel
git clone --depth 1 ${{ matrix.url }} kernel
make -C kernel CC=${CC:=gcc} defconfig
make -C kernel CC=${CC:=gcc} modules_prepare
- name: Build
run: |
KBUILD_MODPOST_WARN=1 make -C mrmShared/linux CC=${CC:=gcc} KERNELDIR="$PWD/kernel"
host:
name: With VM host
runs-on: ubuntu-22.04
Expand Down

0 comments on commit 99ce78e

Please sign in to comment.