forked from nuta/microkernel-book
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
linux_build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- 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 |