Set minimum required ocaml version to 4.14 #24
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 workflow | |
on: | |
- pull_request | |
- push | |
jobs: | |
build: | |
services: | |
rabbitmq: | |
image: rabbitmq | |
ports: | |
- 5672/tcp | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
ocaml-compiler: | |
- 4.14.0 | |
- 5.1.0 | |
concurrency: | |
- async | |
- lwt | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Use OCaml ${{ matrix.ocaml-compiler }} | |
uses: ocaml/setup-ocaml@v2 | |
with: | |
ocaml-compiler: ${{ matrix.ocaml-compiler }} | |
- run: opam pin . --no-action | |
- run: opam install amqp-client amqp-client-${{ matrix.concurrency }} --deps-only --with-doc --with-test | |
- run: opam exec -- dune build -p amqp-client,amqp-client-${{ matrix.concurrency }} | |
- run: opam exec -- dune runtest -p amqp-client,amqp-client-${{ matrix.concurrency }} | |
- run: opam exec -- dune build @integration -p amqp-client,amqp-client-${{ matrix.concurrency }} | |
env: | |
AMQP_PORT: ${{ job.services.rabbitmq.ports[5672] }} |