From 49506749d1b7818ad668146b02bb3ee9172b4b07 Mon Sep 17 00:00:00 2001 From: Yaakov Date: Sun, 11 Aug 2024 21:44:29 +1000 Subject: [PATCH 1/4] 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 From 9e1e3c0991884eafd7a7d9d93b97c6f89ed6e360 Mon Sep 17 00:00:00 2001 From: Yaakov Date: Sun, 11 Aug 2024 21:47:04 +1000 Subject: [PATCH 2/4] get linux-headers --- .github/workflows/ci.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ce330fe..6a5786d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,6 +10,9 @@ 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 From 55dbaae2a80f4514919a636d8f1ad03fe618fb4b Mon Sep 17 00:00:00 2001 From: Yaakov Date: Sun, 11 Aug 2024 21:48:24 +1000 Subject: [PATCH 3/4] newer ubuntu pls --- .github/workflows/ci.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6a5786d..09bc8a5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,11 +8,8 @@ on: jobs: ci: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - - name: Get Linux kernel headers - run: sudo apt install -y linux-headers-$(uname -r) - - name: Get code uses: actions/checkout@v3 From 6942de53ae5ff7a5a44ffa533185ff9c075adee9 Mon Sep 17 00:00:00 2001 From: Yaakov Date: Sun, 11 Aug 2024 21:49:20 +1000 Subject: [PATCH 4/4] ls -l --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 09bc8a5..38a5624 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -20,7 +20,7 @@ jobs: run: sudo insmod scream.ko - name: Check for device - run: ls /dev/scream + run: ls -l /dev/scream - name: Read from device run: head -c 2048 /dev/scream