From 9c6d8d939d92811c8648bc8037b11367a26b96f3 Mon Sep 17 00:00:00 2001 From: Jonathan Maple Date: Tue, 14 Jan 2025 17:00:59 -0500 Subject: [PATCH] github actions Add Build x86_64 action Introducing a basic build check github action to the PR Checks for the Certified Branch of FIPS-9 --- .github/workflows/build-check_x86_64.yml | 34 ++++++++++++++++++++++++ 1 file changed, 34 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..1647a298763df --- /dev/null +++ b/.github/workflows/build-check_x86_64.yml @@ -0,0 +1,34 @@ +name: CI +on: + pull_request_target: + branches: + - '**' + - '!mainline' + +jobs: + kernel-build-job: + runs-on: + labels: kernel-build + container: + image: rockylinux:9 + env: + ROCKY_ENV: rocky9 + ports: + - 80 + options: --cpus 8 + steps: + - name: Install tools and Libraries + run: | + dnf groupinstall 'Development Tools' -y + dnf install --enablerepo=crb bc dwarves kernel-devel openssl-devel elfutils-libelf-devel -y + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: "${{ github.event.pull_request.head }}" + fetch-depth: 0 + - name: Build the Kernel + run: | + git config --global --add safe.directory /__w/kernel-src-tree/kernel-src-tree + cp configs/kernel-5.14.0-x86_64.config .config + make olddefconfig + make -j8