Skip to content

fixed readme

fixed readme #2

Workflow file for this run

name: CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
build-and-test:
name: Build Kernel Module and User Program
runs-on: ubuntu-24.04 # Uses kernel 6.8+ for VMA iterator API support
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install kernel headers and build tools
run: |
sudo apt-get update
sudo apt-get install -y build-essential linux-headers-$(uname -r) kmod
- name: Display kernel version
run: |
uname -r
ls -la /lib/modules/$(uname -r)/build || echo "Kernel headers path check"
- name: Build kernel module
run: make module
- name: Build user program
run: make user
- name: Verify build artifacts
run: |
ls -la build/
file build/elf_det.ko
file build/proc_elf_ctrl
echo "Build artifacts verified successfully!"
- name: Upload build artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: kernel-module-build
path: build/
retention-days: 30
- name: Static analysis with sparse (if available)
run: |
sudo apt-get install -y sparse || true
make clean
make module C=1 || echo "Sparse analysis completed with warnings"
continue-on-error: true