1
0
out-of-tree/.github/workflows/ubuntu.yml

73 lines
2.0 KiB
YAML
Raw Normal View History

2019-08-31 09:04:46 +00:00
name: Ubuntu
2020-09-15 11:05:27 +00:00
on: [push, pull_request]
2019-08-31 09:04:46 +00:00
jobs:
build:
2020-01-05 07:21:39 +00:00
name: Build on Ubuntu
2019-08-31 09:04:46 +00:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build
run: go build
test-unit:
name: Unit Testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
2019-08-31 09:04:46 +00:00
- name: Install dependencies for tests
run: |
sudo apt-get update
2023-01-24 15:32:04 +00:00
sudo apt-get install qemu-system-x86
2019-08-31 09:04:46 +00:00
- name: Bootstrap
run: ./tools/qemu-debian-img/bootstrap.sh
- name: Unit Testing
2019-08-31 09:04:46 +00:00
run: go test -parallel 1 -v ./...
test-end-to-end:
name: End-to-End Testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build
run: go build
- name: Install dependencies for tests
run: |
sudo apt-get update
2023-01-24 15:32:04 +00:00
sudo apt-get install qemu-system-x86
- name: End-to-End Testing [Kernel Module]
run: |
cd examples/kernel-module
2023-04-05 19:50:59 +00:00
sudo ../../out-of-tree --log-level=debug kernel autogen --max=1
sudo ../../out-of-tree --log-level=debug pew --qemu-timeout=10m
- name: End-to-End Testing [Kernel Exploit]
run: |
cd examples/kernel-exploit
2023-04-05 19:50:59 +00:00
sudo ../../out-of-tree --log-level=debug kernel autogen --max=1
sudo ../../out-of-tree --log-level=debug pew --threshold=0 --qemu-timeout=10m
2023-04-06 11:50:18 +00:00
- name: End-to-End Testing [Install one kernel]
run: |
sudo ../../out-of-tree --log-level=debug kernel install --distro=Ubuntu --ver=18.04 --kernel=4.15.0-70-generic
- name: End-to-End Testing [Reinstall one kernel]
run: |
sudo ../../out-of-tree --log-level=debug kernel install --distro=Ubuntu --ver=18.04 --kernel=4.15.0-70-generic --force
- name: End-to-End Testing [Install all Ubuntu 22.04 kernels]
2023-04-06 11:50:18 +00:00
run: |
2023-04-06 12:09:46 +00:00
sudo ../../out-of-tree --log-level=debug kernel genall --distro=Ubuntu --ver=22.04
2023-04-06 11:50:18 +00:00
- name: End-to-End Testing [Install all CentOS 7 kernels]
2023-04-06 11:50:18 +00:00
run: |
2023-04-06 12:09:46 +00:00
sudo ../../out-of-tree --log-level=debug kernel genall --distro=CentOS --ver=7