From ca24d162b9b3c05cfc17c86ce97b3be646cc11b8 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Fri, 31 Jan 2020 17:28:04 -0600 Subject: [PATCH] add basic github actions --- .github/workflows/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 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..55080b5 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,21 @@ +name: build +on: [push] +jobs: + run: + name: Build + runs-on: ${{ matrix.operating-system }} + strategy: + matrix: + operating-system: [ubuntu-latest] + # operating-system: [macos-latest, ubuntu-latest, windows-latest] + ocaml-version: [ '4.05.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 lwd nottui nottui-lwt + - run: opam install -t . --deps-only + - run: opam exec -- dune build + - run: opam exec -- dune runtest