Skip to content

Update to ocaml 5.1.x #2

Update to ocaml 5.1.x

Update to ocaml 5.1.x #2

Workflow file for this run

name: Build
on:
pull_request:
push:
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
ocaml-compiler:
- 5.1.x
runs-on: ${{ matrix.os }}
steps:
- run: |
sudo apt-get update
- name: Checkout code
uses: actions/checkout@v2
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- run: opam install . --deps-only
- run: opam exec -- dune build --profile release
- run: opam exec -- dune runtest
# Build and deploy release build with --no-inline to /no-inline
- run: |
dune build
- name: Deploy website
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/default/bin