name: build on: [push] jobs: run: name: Build runs-on: ${{ matrix.operating-system }} strategy: matrix: operating-system: [macos-latest, ubuntu-latest, windows-latest] ocaml-version: [ '4.08.0' ] steps: - uses: actions/checkout@master - uses: avsm/setup-ocaml@master with: ocaml-version: ${{ matrix.ocaml-version }} - run: opam pin -n . # more recent dune breaks the inline tests… because of warn-error 😱 - run: opam pin dune 2.7.1 -y -n - run: opam depext -yt tiny_httpd tiny_httpd_camlzip - run: opam install -t . --deps-only - run: opam exec -- dune build - run: opam exec -- dune runtest