Skip to content

Add ocaml 5:x in CI #198

Add ocaml 5:x in CI

Add ocaml 5:x in CI #198

Workflow file for this run

name: main
on:
- pull_request
- push
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
ocaml-compiler:
- 4.08.0
- 4.14.2
- 5.2.0
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use OCaml ${{ matrix.ocaml-version }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- run: opam pin add key-parsers.dev . --no-action
- run: opam depext key-parsers --yes --with-test
- run: opam install . --deps-only --with-test
- run: opam exec -- dune build @all @runtest
check-format:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 4.14.2
- run: opam pin add key-parsers.dev . --no-action
- run: opam depext key-parsers --yes
- run: opam install . --deps-only
- run: opam install ocamlformat.0.19.0
- run: opam exec -- dune build @fmt