···1+# This is a basic workflow to help you get started with Actions
2+3+name: CI
4+5+# Controls when the action will run. Triggers the workflow on push or pull request
6+# events but only for the master branch
7+on:
8+ push:
9+ branches:
10+ - "*"
11+ pull_request:
12+ branches:
13+ - "*"
14+15+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
16+jobs:
17+ # This workflow contains a single job called "build"
18+ build:
19+ strategy:
20+ fail-fast: false
21+ matrix:
22+ os:
23+ - ubuntu-latest
24+ ocaml-compiler:
25+ - 4.14.x
26+ # The type of runner that the job will run on
27+ runs-on: ${{ matrix.os }}
28+29+ # Steps represent a sequence of tasks that will be executed as part of the job
30+ steps:
31+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
32+ - uses: actions/checkout@v3
33+34+ - name: Set up OCaml ${{ matrix.ocaml-compiler }}
35+ uses: ocaml/setup-ocaml@v2
36+ with:
37+ # Version of the OCaml compiler to initialise
38+ ocaml-compiler: ${{ matrix.ocaml-compiler }}
39+40+ - name: Install dependencies
41+ run: |
42+ opam install . --deps-only --with-test
43+44+ - name: Build and test in release mode
45+ run: opam install . --with-test