diff --git a/.github/workflows/build-check_x86_64.yml b/.github/workflows/build-check_x86_64.yml new file mode 100644 index 0000000000000..e4169c49d4d9c --- /dev/null +++ b/.github/workflows/build-check_x86_64.yml @@ -0,0 +1,49 @@ +name: x86_64 CI +on: + pull_request: + branches: + - '**' + - '!mainline' + +jobs: + kernel-build-job: + runs-on: + labels: ubuntu-latest + 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 -j8"