Skip to content

Fix CI

Fix CI #70

Workflow file for this run

name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
run_tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Check Kernel Config (Rust)
run: cat /boot/config-$(uname -r) | grep _RUST
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: cargo dkms
version: 1.0
- name: Build module
working-directory: abuse-kmod
run: sudo make install
- name: Load module
run: |
sudo modprobe abuse
ls /dev
- name: Install abusectl
run: sudo cargo install --path abusectl --root /usr/local
- name: Add /dev/abuse0
run: |
sudo abusectl add 0
ls /dev
- name: Connect /dev/abuse0 and ramdisk
run: |
sudo cargo build -p abuse-ramdisk --release
sudo target/release/abuse-ramdisk 0 &
sleep 1
- name: Logical test (badblocks)
run: sudo badblocks -wsv /dev/abuse0
- name: Cat make.log
run: sudo cat /var/lib/dkms/abuse/1.0.0/build/make.log
if: ${{ failure() }}