mirror of
https://github.com/yaakov-h/scream-driver.git
synced 2024-11-25 02:34:48 +00:00
use GitHub Actions for CI
This commit is contained in:
parent
18d20b8343
commit
49506749d1
1 changed files with 29 additions and 0 deletions
29
.github/workflows/ci.yaml
vendored
Normal file
29
.github/workflows/ci.yaml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
ci:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- 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
|
Loading…
Reference in a new issue