From 49850fa7321631429eeef4b773c7e330098a6fd5 Mon Sep 17 00:00:00 2001 From: Brett Mastbergen Date: Thu, 24 Apr 2025 11:19:05 -0400 Subject: [PATCH 1/2] github actions: Add build check action --- .github/workflows/build-check_x86_64.yml | 38 ++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build-check_x86_64.yml diff --git a/.github/workflows/build-check_x86_64.yml b/.github/workflows/build-check_x86_64.yml new file mode 100644 index 0000000000000..5216c092f2cda --- /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: 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:$GITHUB_TOKEN@github.com/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 From 186ec6df3beb4f93a5e75c9892102ac84978a89c Mon Sep 17 00:00:00 2001 From: Brett Mastbergen Date: Thu, 24 Apr 2025 13:06:13 -0400 Subject: [PATCH 2/2] hacks for bmastbergen/kernel-src-tree --- .github/workflows/build-check_x86_64.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-check_x86_64.yml b/.github/workflows/build-check_x86_64.yml index 5216c092f2cda..4e62ba48f8b0b 100644 --- a/.github/workflows/build-check_x86_64.yml +++ b/.github/workflows/build-check_x86_64.yml @@ -8,10 +8,10 @@ on: jobs: kernel-build-job: runs-on: - labels: kernel-build + labels: ubuntu-latest container: image: centos:7 - options: --cpus 8 + options: --cpus 4 steps: - name: Point yum to vault run: | @@ -28,7 +28,7 @@ jobs: - name: Checkout code run: | - git clone --branch ${{ github.head_ref }} "https://oauth2:$GITHUB_TOKEN@github.com/ctrliq/kernel-src-tree" + 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