~james/scope

cb7f12d3e8eeba75b4f02821fbb85d2741a69beb — james verified 13 days ago 3cec217
ci(build): check ocaml versions and xen guest validation
2 files changed, 35 insertions(+), 0 deletions(-)

A .github/workflows/check.yml
A Makefile
A .github/workflows/check.yml => .github/workflows/check.yml +17 -0
@@ 0,0 1,17 @@
name: check
on: [push, pull_request]
jobs:
  check:
    runs-on: ubuntu-24.04
    strategy:
      matrix:
        ocaml: [4.14.2, 5.5.0]
    steps:
      - uses: actions/checkout@v4
      - uses: ocaml/setup-ocaml@v3
        with:
          ocaml-compiler: ${{ matrix.ocaml }}
      - run: sudo apt-get update && sudo apt-get install -y qemu-system-x86 libxen-dev
      - run: opam install . --deps-only --with-test
      - run: opam exec -- make check
      - run: opam exec -- make xen

A Makefile => Makefile +18 -0
@@ 0,0 1,18 @@
.PHONY: all check guest xen clean

all:
	dune build @all

check:
	dune runtest
	$(MAKE) -C guest check

guest: all
	$(MAKE) -C guest check

xen:
	python3 test/xen.py $(XEN_INCLUDE)

clean:
	dune clean
	$(MAKE) -C guest clean