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
|
|
|
|
|
2019-12-26 06:12:42 +00:00
|
|
|
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
|
|
|
|
sudo apt-get install qemu
|
|
|
|
|
|
|
|
- name: Bootstrap
|
|
|
|
run: ./tools/qemu-debian-img/bootstrap.sh
|
|
|
|
|
2019-12-26 06:12:42 +00:00
|
|
|
- name: Unit Testing
|
2019-08-31 09:04:46 +00:00
|
|
|
run: go test -parallel 1 -v ./...
|
2019-12-26 06:12:42 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
sudo apt-get install qemu
|
|
|
|
|
|
|
|
- name: End-to-End Testing [Kernel Module]
|
|
|
|
run: |
|
|
|
|
cd examples/kernel-module
|
|
|
|
../../out-of-tree kernel autogen --max=1
|
|
|
|
../../out-of-tree pew --qemu-timeout=10m
|
|
|
|
|
|
|
|
- name: End-to-End Testing [Kernel Exploit]
|
|
|
|
run: |
|
|
|
|
cd examples/kernel-exploit
|
|
|
|
../../out-of-tree kernel autogen --max=1
|
|
|
|
../../out-of-tree pew --threshold=0 --qemu-timeout=10m
|