Skip to content

[ci] Forward port CI changes from v1.x branch (#102) #139

[ci] Forward port CI changes from v1.x branch (#102)

[ci] Forward port CI changes from v1.x branch (#102) #139

Workflow file for this run

name: Build and Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
ocaml-compiler:
- 4.14.x
- 5.0.x
- 5.1.x
- 5.2.x
- 5.3.x
- 5.4.x
include:
- os: macos-latest
ocaml-compiler: 4.14.x
- os: macos-latest
ocaml-compiler: 5.4.x
- os: windows-latest
ocaml-compiler: 4.14.x
- os: windows-latest
ocaml-compiler: 5.4.x
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- name: Install opam packages
run: opam install . --deps-only --yes --with-test
- name: Run build
run: opam exec -- make build
- name: Run tests
run: opam exec -- make test