Skip to content

Align ocaml-base-compiler version. #247

Align ocaml-base-compiler version.

Align ocaml-base-compiler version. #247

Workflow file for this run

name: Main workflow
on:
pull_request:
push:
schedule:
- cron: '0 1 * * SAT'
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
Tests:
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
ocaml:
- 5
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Setup OCaml ${{ matrix.ocaml }}
uses: ocaml/setup-ocaml@v3
with:
cache-prefix: v1-${{ matrix.os }}-${{ matrix.ocaml }}
dune-cache: true
ocaml-compiler: ${{ matrix.ocaml }}
- name: Build dependencies
run: opam install . --deps-only --with-test
- name: Build library
run: opam exec -- dune build
- name: Run test suite
run: opam exec -- dune runtest