From 49506749d1b7818ad668146b02bb3ee9172b4b07 Mon Sep 17 00:00:00 2001 From: Yaakov Date: Sun, 11 Aug 2024 21:44:29 +1000 Subject: [PATCH] use GitHub Actions for CI --- .github/workflows/ci.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..ce330fe --- /dev/null +++ b/.github/workflows/ci.yaml @@ -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