Skip to content

Cache opam switch

Cache opam switch #2

Workflow file for this run

name: dream-html
on:
- push
permissions: read-all
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
ocaml-compiler: [5, 4]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- name: Restore cache
uses: actions/cache@v4
with:
path: _opam
key: v3.10.0-${{ matrix.ocaml-compiler }}-${{ matrix.os }}-${{ hashFiles('dune-project') }}
- run: opam install . --deps-only --with-test
- run: opam exec -- dune build
- run: opam exec -- dune runtest