ci(build): check ocaml versions and xen guest validation
2 files changed, +35 −0
- .github/workflows/check.yml added +17 −0
- Makefile added +18 −0
.github/workflows/check.yml added
| @@ -0,0 +1,17 @@ | ||
| 1 | +name: check | |
| 2 | +on: [push, pull_request] | |
| 3 | +jobs: | |
| 4 | + check: | |
| 5 | + runs-on: ubuntu-24.04 | |
| 6 | + strategy: | |
| 7 | + matrix: | |
| 8 | + ocaml: [4.14.2, 5.5.0] | |
| 9 | + steps: | |
| 10 | + - uses: actions/checkout@v4 | |
| 11 | + - uses: ocaml/setup-ocaml@v3 | |
| 12 | + with: | |
| 13 | + ocaml-compiler: ${{ matrix.ocaml }} | |
| 14 | + - run: sudo apt-get update && sudo apt-get install -y qemu-system-x86 libxen-dev | |
| 15 | + - run: opam install . --deps-only --with-test | |
| 16 | + - run: opam exec -- make check | |
| 17 | + - run: opam exec -- make xen | |
Makefile added
| @@ -0,0 +1,18 @@ | ||
| 1 | +.PHONY: all check guest xen clean | |
| 2 | + | |
| 3 | +all: | |
| 4 | + dune build @all | |
| 5 | + | |
| 6 | +check: | |
| 7 | + dune runtest | |
| 8 | + $(MAKE) -C guest check | |
| 9 | + | |
| 10 | +guest: all | |
| 11 | + $(MAKE) -C guest check | |
| 12 | + | |
| 13 | +xen: | |
| 14 | + python3 test/xen.py $(XEN_INCLUDE) | |
| 15 | + | |
| 16 | +clean: | |
| 17 | + dune clean | |
| 18 | + $(MAKE) -C guest clean | |