Skip to content

Commit

Permalink
ci: add a job to test OCaml bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
XVilka committed Dec 20, 2024
1 parent f790d23 commit a3f4286
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/bindings.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a3f4286

Please sign in to comment.