1
0
Fork 0
mirror of https://github.com/yaakov-h/scream-driver.git synced 2024-10-16 15:50:02 +00:00
scream-driver/.github/workflows/ci.yaml

33 lines
583 B
YAML
Raw Normal View History

2024-08-11 11:44:29 +00:00
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci:
runs-on: ubuntu-latest
steps:
2024-08-11 11:47:04 +00:00
- name: Get Linux kernel headers
run: sudo apt install -y linux-headers-$(uname -r)
2024-08-11 11:44:29 +00:00
- name: Get code
uses: actions/checkout@v3
- name: Build kernel module
run: make
- name: Load kernel module
run: sudo insmod scream.ko
- name: Check for device
run: ls /dev/scream
- name: Read from device
run: head -c 2048 /dev/scream
- name: Unload kernel module
run: sudo rmmod scream.ko