File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ name : Linux
3+
4+ on :
5+ pull_request :
6+ branches : ["cf-zeta"]
7+ workflow_dispatch :
8+
9+ jobs :
10+ tcrypt :
11+ runs-on : ubuntu-22.04
12+ steps :
13+ - name : Install dependencies
14+ run : |
15+ sudo apt-get update
16+ sudo apt-get install -y flex bison bc cpio busybox-static kmod
17+ - name : Checkout
18+ uses : actions/checkout@v3
19+ - name : Build kernel & Modules
20+ run : |
21+ cp zeta/test-artifacts/config-um .config
22+ make olddefconfig ARCH=um
23+ make -j$(nproc) ARCH=um all
24+ mkdir initramfs
25+ make modules_install INSTALL_MOD_PATH=./initramfs ARCH=um
26+ - name : Prepare initramfs
27+ run : |
28+ mkdir initramfs/bin initramfs/proc
29+ cp -p /bin/busybox initramfs/bin/busybox
30+ cp -p zeta/test-artifacts/init initramfs/init
31+ cp -p zeta/test-artifacts/test-script.sh initramfs/test-script.sh
32+ cd initramfs
33+ find . -print0 | cpio --null --create --verbose --format=newc | gzip --best > ../uml-initramfs.cpio.gz
34+ cd ..
35+ - name : Run user-mode linux test harness
36+ continue-on-error : true
37+ run : |
38+ sudo ./linux initrd=uml-initramfs.cpio.gz > tcrypt.out 2>&1
39+ cat tcrypt.out
40+ - name : Collect artifacts
41+ uses : actions/upload-artifact@v3
42+ if : success() || failure()
43+ with :
44+ name : tcrypt_job
45+ path : ./tcrypt.out
You can’t perform that action at this time.
0 commit comments