[cbr79] [container] github actions: Add build check action #226
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: centos:7 | |
options: --cpus 8 | |
steps: | |
- name: Point yum to vault | |
run: | | |
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 /etc/yum.repos.d/CentOS-Base.repo | |
- name: Install tools and Libraries | |
run: | | |
yum groupinstall 'Development Tools' -y | |
yum install bc dwarves git glibc-devel hostname kernel-devel mpfr openssl openssl-devel elfutils-libelf-devel -y | |
- name: Checkout code | |
run: | | |
git clone --branch ${{ github.head_ref }} "https://oauth2:[email protected]/ctrliq/kernel-src-tree" | |
- name: Build the Kernel | |
working-directory: kernel-src-tree | |
run: | | |
cp configs/kernel-3.10.0-x86_64.config .config | |
make olddefconfig | |
make -j8 |