Add GitHub workflow for building kpatch shellcode

This commit is contained in:
Al Azif
2025-06-03 22:18:23 -07:00
parent a74538dee4
commit f690d7b527

30
.github/workflows/build.yml vendored Normal file
View File

@@ -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