[fips-8] github actions: Add kabi checks #558
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: x86_64 CI | |
on: | |
pull_request: | |
branches: | |
- '**' | |
- '!mainline' | |
jobs: | |
kernel-build-job: | |
runs-on: | |
labels: kernel-build | |
container: | |
image: rockylinux:8 | |
env: | |
ROCKY_ENV: rocky8 | |
ports: | |
- 80 | |
options: --cpus 8 | |
steps: | |
- name: Install tools and Libraries | |
run: | | |
dnf groupinstall 'Development Tools' -y | |
dnf install --enablerepo=devel bc dwarves kernel-devel openssl-devel elfutils-libelf-devel -y | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: "${{ github.event.pull_request.head.sha }}" | |
fetch-depth: 0 | |
- name: Build the Kernel | |
run: | | |
git config --global --add safe.directory /__w/kernel-src-tree/kernel-src-tree | |
cp configs/kernel-x86_64.config .config | |
make olddefconfig | |
make -j8 | |
- name: Check kabi | |
run: | | |
git clone --branch r8 --single-branch https://git.rockylinux.org/staging/rpms/kernel.git kernel-dist-git | |
git -C kernel-dist-git reset --hard imports/r8/kernel-4.18.0-553.16.1.el8_10 | |
./kernel-dist-git/SOURCES/check-kabi -k ./kernel-dist-git/SOURCES/Module.kabi_x86_64 -s Module.symvers |