From c85d7c128edfa353b918e19b2eefd60bcf97f3f2 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Tue, 9 Feb 2021 19:41:14 -0500 Subject: [PATCH] chore: add github CI --- .github/workflows/main.yml | 20 ++++++++++++++++++++ 1 file changed, 20 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 00000000..85b19748 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,20 @@ +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 . + - run: opam depext -yt linol linol-lwt + - run: opam install -t . --deps-only + - run: opam exec -- dune build + - run: opam exec -- dune runtest