name: CI on: [push, pull_request] jobs: Host: strategy: matrix: operating-system: [ubuntu-latest,macos-latest] ocaml-version: [4.12.1,4.13.1,4.14.2,5.3.0] runs-on: ${{ matrix.operating-system }} steps: - uses: actions/checkout@v4 - uses: ocaml/setup-ocaml@v3 with: ocaml-compiler: ${{ matrix.ocaml-version }} dune-cache: true opam-local-packages: | !gmp.opam - name: Add mirage-dev repository run: opam repo add mirage-dev git+https://github.com/mirage/mirage-dev.git#master - name: Compiling example project run: opam exec -- dune build @install - name: Running tests run: opam exec -- dune runtest Cross-Solo5: strategy: matrix: operating-system: [ubuntu-latest] ocaml-version: [5.3.0] runs-on: ${{ matrix.operating-system }} steps: - uses: actions/checkout@v4 - uses: ocaml/setup-ocaml@v3 with: ocaml-compiler: ${{ matrix.ocaml-version }} dune-cache: true opam-local-packages: | !gmp.opam - name: Pin ocaml-solo5 run: opam pin add -yn ocaml-solo5 https://github.com/mirage/ocaml-solo5.git - name: Add mirage-dev repository run: opam repo add mirage-dev git+https://github.com/mirage/mirage-dev.git#master - name: Install ocaml-solo5 run: opam depext -yit ocaml-solo5 - name: Compiling example project run: opam exec -- dune build @install --workspace dune-workspace.solo5 - name: Running tests run: opam exec -- dune runtest --workspace dune-workspace.solo5