mirror of
https://github.com/ocaml-tracing/ocaml-trace.git
synced 2026-03-08 03:47:57 -04:00
require ocaml 4.05, add CI
This commit is contained in:
parent
68bcc7c9e2
commit
4a390e190b
3 changed files with 40 additions and 2 deletions
38
.github/workflows/main.yml
vendored
Normal file
38
.github/workflows/main.yml
vendored
Normal 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
|
||||||
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
(name trace)
|
(name trace)
|
||||||
(synopsis "A stub for tracing/observability")
|
(synopsis "A stub for tracing/observability")
|
||||||
(depends
|
(depends
|
||||||
(ocaml (>= 4.03))
|
(ocaml (>= 4.05))
|
||||||
dune)
|
dune)
|
||||||
(tags
|
(tags
|
||||||
(tracing observability profiling)))
|
(tracing observability profiling)))
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ tags: ["tracing" "observability" "profiling"]
|
||||||
homepage: "https://github.com/c-cube/trace"
|
homepage: "https://github.com/c-cube/trace"
|
||||||
bug-reports: "https://github.com/c-cube/trace/issues"
|
bug-reports: "https://github.com/c-cube/trace/issues"
|
||||||
depends: [
|
depends: [
|
||||||
"ocaml" {>= "4.03"}
|
"ocaml" {>= "4.05"}
|
||||||
"dune" {>= "2.9"}
|
"dune" {>= "2.9"}
|
||||||
"odoc" {with-doc}
|
"odoc" {with-doc}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue