Ocaml5 compatibility #197
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.12.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.12.0 | |
- 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 |