···11+# This is a basic workflow to help you get started with Actions
22+33+name: CI
44+55+# Controls when the action will run. Triggers the workflow on push or pull request
66+# events but only for the master branch
77+on:
88+ push:
99+ branches:
1010+ - "*"
1111+ pull_request:
1212+ branches:
1313+ - "*"
1414+1515+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1616+jobs:
1717+ # This workflow contains a single job called "build"
1818+ build:
1919+ strategy:
2020+ fail-fast: false
2121+ matrix:
2222+ os:
2323+ - ubuntu-latest
2424+ ocaml-compiler:
2525+ - 4.14.x
2626+ # The type of runner that the job will run on
2727+ runs-on: ${{ matrix.os }}
2828+2929+ # Steps represent a sequence of tasks that will be executed as part of the job
3030+ steps:
3131+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3232+ - uses: actions/checkout@v3
3333+3434+ - name: Set up OCaml ${{ matrix.ocaml-compiler }}
3535+ uses: ocaml/setup-ocaml@v2
3636+ with:
3737+ # Version of the OCaml compiler to initialise
3838+ ocaml-compiler: ${{ matrix.ocaml-compiler }}
3939+4040+ - name: Install dependencies
4141+ run: |
4242+ opam install . --deps-only --with-test
4343+4444+ - name: Build and test in release mode
4545+ run: opam install . --with-test