[cbr79] Multiple Xen VULNS #238
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 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: "${{ github.event.pull_request.head.sha }}" | |
fetch-depth: 0 | |
path: kernel-src-tree | |
- name: Install rinse | |
run: | | |
sudo apt-get install rinse | |
- name: Build centos7 chroot | |
run: | | |
sudo rinse --distribution centos-7 \ | |
--mirror http://dl.rockylinux.org/vault/centos/7/os/x86_64/Packages \ | |
--arch amd64 \ | |
--directory centos-7-chroot | |
- name: Point yum to vault (in chroot) | |
run: | | |
sudo sed -e '/mirrorlist=.*/d' \ | |
-e 's/#baseurl=/baseurl=/' \ | |
-e "s/\$releasever/7.9.2009/g" \ | |
-e "s/mirror.centos.org/dl.rockylinux.org\/vault/g" \ | |
-i centos-7-chroot/etc/yum.repos.d/CentOS-Base.repo | |
- name: Install tools and Libraries (in chroot) | |
run: | | |
sudo chroot centos-7-chroot yum groupinstall 'Development Tools' -y | |
sudo chroot centos-7-chroot yum install bc dwarves git glibc-devel hostname kernel-devel mpfr openssl openssl-devel elfutils-libelf-devel -y | |
- name: Build the Kernel (in chroot) | |
run: | | |
sudo mv kernel-src-tree centos-7-chroot | |
sudo chroot centos-7-chroot sh -c "cd kernel-src-tree && cp configs/kernel-3.10.0-x86_64.config .config" | |
sudo chroot centos-7-chroot sh -c "cd kernel-src-tree && make olddefconfig" | |
sudo chroot centos-7-chroot sh -c "cd kernel-src-tree && make -j$(nproc)" |