From f690d7b527e3d11fe70e237d2ab7d3c846d49155 Mon Sep 17 00:00:00 2001 From: Al Azif <33132478+Al-Azif@users.noreply.github.com> Date: Tue, 3 Jun 2025 22:18:23 -0700 Subject: [PATCH] Add GitHub workflow for building kpatch shellcode --- .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..97d2dda --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,30 @@ +name: Build kpatch + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + defaults: + run: + working-directory: src/kpatch + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install build tools + run: sudo apt-get update && sudo apt-get install -y build-essential + + - name: Build kpatch binaries + run: make + + - name: Upload entire repository as zip + uses: actions/upload-artifact@v4 + with: + name: psfree-lapse-archive + path: ${{ github.workspace }} + if-no-files-found: error + compression-level: 9