From 03bdc2e03518e65fe5ab7525aabc8b8b0f220cf2 Mon Sep 17 00:00:00 2001 From: Ekanshdeep Gupta Date: Wed, 24 Apr 2024 23:19:54 -0400 Subject: [PATCH] Create ocaml_ci.yml --- .github/workflows/ocaml_ci.yml | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/ocaml_ci.yml diff --git a/.github/workflows/ocaml_ci.yml b/.github/workflows/ocaml_ci.yml new file mode 100644 index 0000000..cf0d210 --- /dev/null +++ b/.github/workflows/ocaml_ci.yml @@ -0,0 +1,38 @@ +name: Builds, tests & co + +on: + pull_request: + branches: [ "main", "dev" ] + + push: + +permissions: read-all + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: + - macos-latest + - ubuntu-latest + - windows-latest + ocaml-compiler: + - "4.14" + + runs-on: ${{ matrix.os }} + + steps: + - name: Checkout tree + uses: actions/checkout@v4 + + - name: Set-up OCaml ${{ matrix.ocaml-compiler }} + uses: ocaml/setup-ocaml@v2 + with: + ocaml-compiler: ${{ matrix.ocaml-compiler }} + + - run: opam install . --deps-only --with-test + + - run: opam exec -- dune build @fmt + + - run: opam exec -- dune runtest