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
2024-08-11 21:47:04 +10:00

32 lines
583 B
YAML

on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Get Linux kernel headers
run: sudo apt install -y linux-headers-$(uname -r)
- 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