Skip to content

Update main.yml

Update main.yml #14

Workflow file for this run

name: Builds, tests & co
on:
pull_request:
push:
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON
permissions: read-all
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: "ocaml-variants.5.1.1+options,ocaml-option-static,ocaml-option-no-compression"
- name: Install system dependencies
run: sudo apt install musl-dev linux-headers-amd64
- run: opam install . --deps-only --with-test
- run: opam exec -- dune build --profile static