require ocaml 4.05, add CI

This commit is contained in:
Simon Cruanes 2023-06-08 21:26:32 -04:00
parent 68bcc7c9e2
commit 4a390e190b
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
3 changed files with 40 additions and 2 deletions

38
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,38 @@
name: Build and Test
on:
push:
branches:
- main
pull_request:
jobs:
run:
name: build
strategy:
fail-fast: true
matrix:
os:
- ubuntu-latest
#- macos-latest
#- windows-latest
ocaml-compiler:
- '4.05'
- '4.14'
- '5.0'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@main
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
dune-cache: true
- run: opam install -t trace --deps-only
- run: opam exec -- dune build '@install'
- run: opam exec -- dune runtest

View file

@ -15,7 +15,7 @@
(name trace)
(synopsis "A stub for tracing/observability")
(depends
(ocaml (>= 4.03))
(ocaml (>= 4.05))
dune)
(tags
(tracing observability profiling)))

View file

@ -8,7 +8,7 @@ tags: ["tracing" "observability" "profiling"]
homepage: "https://github.com/c-cube/trace"
bug-reports: "https://github.com/c-cube/trace/issues"
depends: [
"ocaml" {>= "4.03"}
"ocaml" {>= "4.05"}
"dune" {>= "2.9"}
"odoc" {with-doc}
]