From 0b10d36d64fd6035c9569e034576de5409c2e5e4 Mon Sep 17 00:00:00 2001 From: Sebastien Mondet Date: Sun, 17 Oct 2021 15:08:59 -0400 Subject: [PATCH] Add `.github/workflows/main.yml` --- .github/workflows/main.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..6d9b4f8 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,23 @@ +name: build +on: [push, pull_request] +jobs: + run: + name: Build + runs-on: ${{ matrix.operating-system }} + strategy: + matrix: + #operating-system: [ubuntu-latest] + operating-system: [macos-latest, ubuntu-latest] #, windows-latest] + ocaml-compiler: [ '4.09.1' , '4.10.1', '4.11.1', '4.12.1' ] + steps: + - uses: actions/checkout@v2 + - name: Set up OCaml ${{ matrix.ocaml-compiler }} + uses: ocaml/setup-ocaml@v2 + with: + ocaml-compiler: ${{ matrix.ocaml-compiler }} + - run: opam install . --deps-only + # Dependencies for the examples/tests: + - run: opam install uri ocamlformat + - run: opam exec -- dune build @check + - run: opam exec -- dune build @fmt +