diff --git a/.github/workflows/build-check_x86_64.yml b/.github/workflows/build-check_x86_64.yml new file mode 100644 index 0000000000000..4e62ba48f8b0b --- /dev/null +++ b/.github/workflows/build-check_x86_64.yml @@ -0,0 +1,38 @@ +name: x86_64 CI +on: + pull_request: + branches: + - '**' + - '!mainline' + +jobs: + kernel-build-job: + runs-on: + labels: ubuntu-latest + container: + image: centos:7 + options: --cpus 4 + 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:$GITHUB_TOKEN@github.com/bmastbergen/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