forked from nuta/microkernel-book
-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (35 loc) · 967 Bytes
/
ci.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
name: CI
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize]
jobs:
linux_build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install packages
run: sudo apt-get update && sudo apt-get install -y llvm clang lld python3-pip qemu-system tshark
- name: Install pip packages
run: pip3 install --user -r tools/requirements.txt
- name: make doctor
run: make doctor
- name: Debug build
run: make build -j2
- name: Run tests (debug build, 1 CPU)
run: make test -j2
env:
TEST_DEFAULT_TIMEOUT: 10
FLAKE_RUNS: 4
CPUS: 1
- name: Run tests (debug build, 4 CPUs)
run: make test -j2
env:
TEST_DEFAULT_TIMEOUT: 10
FLAKE_RUNS: 4
CPUS: 4