forked from gregkh/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.05 KB
/
crypto-testing.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
name: Crypto algorithm testing pipeline
on:
push:
branches: [ "crypto-test" ]
pull_request:
branches: [ "crypto-test" ]
workflow_dispatch:
jobs:
crypto_testing_job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build kernel & modules
run: |
cp config-um .config
make olddefconfig ARCH=um
make ARCH=um all
mkdir initramfs
make modules_install INSTALL_MOD_PATH=./initramfs ARCH=um
- name: prepare initramfs
run: |
sudo apt-get install busybox-static
mkdir initramfs/bin
cp -p /bin/busybox initramfs/bin/busybox
cp -p zeta/init initramfs/init
cp -p zeta/test-script.sh initramfs/test-script.sh
cd initramfs
find . -print0 | cpio --null --create --verbose --format=newc | gzip --best > ../uml-initramfs.cpio.gz
cd ..
- name: run user-mode linux test harness
run: |
sudo ./linux initrd=uml-initramfs.cpio.gz 2>&1
- name: Setup upterm session
uses: lhotari/action-upterm@v1