From 5b1f2af2279ab8e67dd913204ffecd2718b964f4 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Mon, 26 Sep 2022 11:25:36 -0400 Subject: [PATCH] chore(github): add opam deps workflow --- .github/workflows/opam-dependencies.yml | 35 +++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/opam-dependencies.yml diff --git a/.github/workflows/opam-dependencies.yml b/.github/workflows/opam-dependencies.yml new file mode 100644 index 00000000..4f83230e --- /dev/null +++ b/.github/workflows/opam-dependencies.yml @@ -0,0 +1,35 @@ + +name: Main workflow + +on: + pull_request: + push: + #schedule: + # Prime the caches every Monday + #- cron: 0 1 * * MON + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + ocaml-compiler: + - 4.14.x + + runs-on: ${{ matrix.os }} + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Use OCaml ${{ matrix.ocaml-compiler }} + uses: ocaml/setup-ocaml@analysis + with: + ocaml-compiler: ${{ matrix.ocaml-compiler }} + + - run: opam install . --deps-only --with-test --with-doc + + - uses: ocaml/setup-ocaml/analysis@analysis +