1
0

263 lines
7.9 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
2023-04-09 14:16:29 +00:00
run: ./tools/qemu-ubuntu-img/bootstrap.sh
2019-08-31 09:04:46 +00:00
- 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-06 14:50:58 +00:00
../../out-of-tree --log-level=debug kernel autogen --max=1
../../out-of-tree --log-level=debug pew --qemu-timeout=10m
- name: End-to-End Testing [Kernel Exploit]
run: |
cd examples/kernel-exploit
2023-04-06 14:50:58 +00:00
../../out-of-tree --log-level=debug kernel autogen --max=1
../../out-of-tree --log-level=debug pew --threshold=0 --qemu-timeout=10m
2023-04-06 11:50:18 +00:00
2023-04-06 20:14:36 +00:00
- name: Archive logs
uses: actions/upload-artifact@v3
with:
2023-04-06 20:40:18 +00:00
name: test-end-to-end-logs
2023-04-06 20:14:36 +00:00
path: /home/runner/.out-of-tree/logs/out-of-tree.log
2023-04-06 12:15:52 +00:00
test-end-to-end-kernels:
2023-04-06 12:55:24 +00:00
name: End-to-End Testing (kernels)
2023-04-06 12:15:52 +00:00
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-system-x86
2023-04-06 13:38:33 +00:00
- name: End-to-End Testing [Install one Ubuntu 18.04 kernel]
run: |
2023-04-06 14:50:58 +00:00
./out-of-tree --log-level=debug kernel install --distro=Ubuntu --ver=18.04 --kernel=4.15.0-70-generic
2023-04-06 13:38:33 +00:00
- name: End-to-End Testing [Reinstall one Ubuntu 18.04 kernel]
run: |
2023-04-06 14:50:58 +00:00
./out-of-tree --log-level=debug kernel install --distro=Ubuntu --ver=18.04 --kernel=4.15.0-70-generic --force
2023-04-06 13:38:33 +00:00
- name: End-to-End Testing [Install one Ubuntu 22.04 kernel w/o headers]
2023-04-06 12:55:24 +00:00
run: |
2023-04-06 14:50:58 +00:00
./out-of-tree --log-level=debug kernel install --distro=Ubuntu --ver=22.04 --kernel=5.19.0-28-generic --no-headers
2023-04-06 12:55:24 +00:00
2023-04-06 13:38:33 +00:00
- name: End-to-End Testing [Install one CentOS 7 kernel]
2023-04-06 11:50:18 +00:00
run: |
2023-05-09 21:07:05 +00:00
./out-of-tree --log-level=debug kernel install --distro=CentOS --ver=7 --kernel=3.10.0-862.6.3 --no-download
2023-04-06 11:50:18 +00:00
2023-04-06 13:38:33 +00:00
- name: End-to-End Testing [Install one CentOS 7 kernel w/o headers]
2023-04-06 12:55:24 +00:00
run: |
2023-05-09 21:07:05 +00:00
./out-of-tree --log-level=debug kernel install --distro=CentOS --ver=7 --kernel=3.10.0-1160.71.1 --no-download --no-headers
2023-04-06 12:55:24 +00:00
2023-04-06 13:38:33 +00:00
- name: End-to-End Testing [Install one CentOS 8 kernel]
run: |
2023-05-09 21:07:05 +00:00
./out-of-tree --log-level=debug kernel install --distro=CentOS --ver=8 --kernel=4.18.0-348.7.1 --no-download
2023-04-06 13:38:33 +00:00
2023-04-06 20:14:36 +00:00
- name: Archive logs
uses: actions/upload-artifact@v3
with:
2023-04-06 20:40:18 +00:00
name: test-end-to-end-kernels-log
2023-04-06 20:14:36 +00:00
path: /home/runner/.out-of-tree/logs/out-of-tree.log
2023-04-06 12:55:24 +00:00
test-end-to-end-genall:
name: End-to-End Testing (genall)
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-system-x86
2023-04-06 12:36:06 +00:00
- name: End-to-End Testing [Install all Ubuntu 22.04 kernels]
2023-04-06 11:50:18 +00:00
run: |
2023-04-06 14:50:58 +00:00
./out-of-tree --log-level=debug kernel genall --distro=Ubuntu --ver=22.04
2023-04-06 20:14:36 +00:00
- name: Archive logs
uses: actions/upload-artifact@v3
with:
2023-04-06 20:40:18 +00:00
name: test-end-to-end-genall-logs
2023-04-06 20:14:36 +00:00
path: /home/runner/.out-of-tree/logs/out-of-tree.log
2023-05-10 09:09:12 +00:00
test-end-to-end-ubuntu:
name: End-to-End Testing (Ubuntu)
2023-05-10 09:09:12 +00:00
runs-on: ubuntu-latest
strategy:
matrix:
release: [12.04, 14.04, 16.04, 18.04, 20.04, 22.04]
2023-05-10 09:09:12 +00:00
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-system-x86
- name: End-to-End Testing [Ubuntu ${{ matrix.release }}]
2023-05-10 09:09:12 +00:00
run: |
mkdir test
cd test
2023-05-10 09:09:12 +00:00
echo 'name = "out-of-tree script"' >> .out-of-tree.toml
echo 'type = "script"' >> .out-of-tree.toml
echo 'script = "script.sh"' >> .out-of-tree.toml
echo '[[supported_kernels]]' >> .out-of-tree.toml
echo 'distro_type = "Ubuntu"' >> .out-of-tree.toml
echo 'distro_release = "${{ matrix.release }}"' >> .out-of-tree.toml
echo 'release_mask = ".*"' >> .out-of-tree.toml
2023-05-10 09:09:12 +00:00
echo -e '#!/bin/sh\necho ok' >> script.sh
2023-05-10 09:09:12 +00:00
../out-of-tree --log-level=debug kernel list-remote --distro=Ubuntu --ver=${{ matrix.release }}
../out-of-tree --log-level=debug kernel autogen --max=1 --shuffle
../out-of-tree --log-level=debug pew --qemu-timeout=10m
2023-05-10 09:09:12 +00:00
- name: Archive logs
uses: actions/upload-artifact@v3
with:
name: test-end-to-end-ubuntu-${{ matrix.release }}
path: /home/runner/.out-of-tree/logs/out-of-tree.log
2023-05-10 09:09:12 +00:00
test-end-to-end-centos:
name: End-to-End Testing (CentOS)
runs-on: ubuntu-latest
2023-05-10 09:09:12 +00:00
strategy:
matrix:
release: [6, 7, 8]
2023-05-10 09:09:12 +00:00
steps:
- uses: actions/checkout@v1
2023-05-10 09:09:12 +00:00
- name: Build
run: go build
2023-05-10 09:09:12 +00:00
- name: Install dependencies for tests
2023-05-10 09:09:12 +00:00
run: |
sudo apt-get update
sudo apt-get install qemu-system-x86
2023-05-10 09:09:12 +00:00
- name: End-to-End Testing [Ubuntu ${{ matrix.release }}]
2023-05-10 09:09:12 +00:00
run: |
mkdir test
cd test
2023-05-10 09:09:12 +00:00
echo 'name = "out-of-tree script"' >> .out-of-tree.toml
echo 'type = "script"' >> .out-of-tree.toml
echo 'script = "script.sh"' >> .out-of-tree.toml
echo '[[supported_kernels]]' >> .out-of-tree.toml
echo 'distro_type = "CentOS"' >> .out-of-tree.toml
echo 'distro_release = "${{ matrix.release }}"' >> .out-of-tree.toml
echo 'release_mask = ".*"' >> .out-of-tree.toml
2023-05-10 09:09:12 +00:00
echo -e '#!/bin/sh\necho ok' >> script.sh
../out-of-tree --log-level=debug kernel list-remote --distro=CentOS --ver=${{ matrix.release }}
../out-of-tree --log-level=debug kernel autogen --max=1 --shuffle
../out-of-tree --log-level=debug pew --qemu-timeout=10m
2023-05-10 09:09:12 +00:00
- name: Archive logs
uses: actions/upload-artifact@v3
with:
name: test-end-to-end-centos-${{ matrix.release }}
2023-05-10 09:09:12 +00:00
path: /home/runner/.out-of-tree/logs/out-of-tree.log
2023-05-10 09:36:19 +00:00
test-end-to-end-oracle-linux:
name: End-to-End Testing (Oracle Linux)
2023-05-10 09:36:19 +00:00
runs-on: ubuntu-latest
strategy:
matrix:
release: [6, 7, 8, 9]
2023-05-10 09:36:19 +00:00
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-system-x86
- name: End-to-End Testing [Ubuntu ${{ matrix.release }}]
run: |
mkdir test
cd test
echo 'name = "out-of-tree script"' >> .out-of-tree.toml
echo 'type = "script"' >> .out-of-tree.toml
echo 'script = "script.sh"' >> .out-of-tree.toml
echo '[[supported_kernels]]' >> .out-of-tree.toml
echo 'distro_type = "OracleLinux"' >> .out-of-tree.toml
2023-05-10 09:36:19 +00:00
echo 'distro_release = "${{ matrix.release }}"' >> .out-of-tree.toml
echo 'release_mask = ".*"' >> .out-of-tree.toml
echo -e '#!/bin/sh\necho ok' >> script.sh
../out-of-tree --log-level=debug kernel list-remote --distro=OracleLinux --ver=${{ matrix.release }}
2023-05-10 09:36:19 +00:00
../out-of-tree --log-level=debug kernel autogen --max=1 --shuffle
../out-of-tree --log-level=debug pew --qemu-timeout=10m
- name: Archive logs
uses: actions/upload-artifact@v3
with:
2023-05-10 09:51:08 +00:00
name: test-end-to-end-oraclelinux-${{ matrix.release }}
2023-05-10 09:36:19 +00:00
path: /home/runner/.out-of-tree/logs/out-of-tree.log