From a3f428618d3f3e3c2ae4fad0f3caa68bcedc413c Mon Sep 17 00:00:00 2001 From: Anton Kochkov Date: Fri, 20 Dec 2024 15:32:06 +0800 Subject: [PATCH] ci: add a job to test OCaml bindings --- .github/workflows/bindings.yml | 40 ++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/bindings.yml diff --git a/.github/workflows/bindings.yml b/.github/workflows/bindings.yml new file mode 100644 index 0000000000..1b9ca5951e --- /dev/null +++ b/.github/workflows/bindings.yml @@ -0,0 +1,40 @@ +name: Bindings testing + +on: + - push + - pull_request + +permissions: read-all + +jobs: + ocaml: + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest + + runs-on: ${{ matrix.os }} + + steps: + - name: Checkout tree + uses: actions/checkout@v4 + + - name: Set-up OCaml + uses: ocaml/setup-ocaml@v3 + with: + ocaml-compiler: 5 + + - name: Install Opam dependencies + - run: opam install . --deps-only --with-test + working-directory: bindings/ocaml + + - name: Building OCaml bindings + - run: opam exec -- dune build + working-directory: bindings/ocaml + + - name: Run tests + - run: opam exec -- dune runtest + working-directory: bindings/ocaml