-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (61 loc) · 1.62 KB
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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 ruby
version: 1.0
- name: Build module
working-directory: azbuse-kmod
run: sudo make install
- name: Load module
run: |
sudo modprobe azbuse
ls /dev
- name: Install azbusectl
run: sudo cargo install --path azbusectl --root /usr/local
- name: Add /dev/azbuse1
run: |
sudo azbusectl add 1
lsblk
sudo azbusectl remove 1
lsblk
sudo azbusectl add 1
lsblk
- name: Connect /dev/azbuse1 and ramdisk
run: |
sudo cargo build -p ramdisk --release
sudo target/release/ramdisk 1 &> azbuse.log &
sleep 1
lsblk
- name: Logical test (badblocks)
run: sudo badblocks -wsv /dev/azbuse1
- name: Performance test
run: sudo ruby tests/perf.rb /dev/azbuse1
- name: Error log
run: |
sudo cat /var/lib/dkms/azbuse/1.0.0/build/make.log
if: ${{ failure() }}
- name: App Log
run: |
sudo cat azbuse.log
if: ${{ always() }}
- name: kernel Log
run: |
sudo dmesg
if: ${{ always() }}