Skip to content

Commit

Permalink
Add Github action CI (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierleroy authored Oct 27, 2024
1 parent 0c037d9 commit ffe5c0b
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build and test

on:
push:
branches:
- 'master'
pull_request:
workflow_dispatch:

permissions: read-all

jobs:
build:
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

- run: opam install . --deps-only --with-test

- run: opam exec -- dune build

- run: opam exec -- dune runtest

0 comments on commit ffe5c0b

Please sign in to comment.