diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..0ccda9f --- /dev/null +++ b/.github/workflows/main.yml @@ -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 + diff --git a/dune-project b/dune-project index f52d747..78001d0 100644 --- a/dune-project +++ b/dune-project @@ -15,7 +15,7 @@ (name trace) (synopsis "A stub for tracing/observability") (depends - (ocaml (>= 4.03)) + (ocaml (>= 4.05)) dune) (tags (tracing observability profiling))) diff --git a/trace.opam b/trace.opam index e04d5bc..162e697 100644 --- a/trace.opam +++ b/trace.opam @@ -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} ]