try to enable cache in CI

This commit is contained in:
Simon Cruanes 2020-12-21 16:34:02 -05:00
parent fd1a43497d
commit 330e026d0a

View file

@ -10,9 +10,16 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@main - uses: actions/checkout@main
- uses: avsm/setup-ocaml@master - name: cache opam
id: cache-opam
uses: actions/cache@v2
with:
path: _opam
key: opam-${{matrix.operating-system}}-${{matrix.ocaml-version}}
- uses: avsm/setup-ocaml@v1
with: with:
ocaml-version: ${{ matrix.ocaml }} ocaml-version: ${{ matrix.ocaml }}
if: steps.cache-opam.outputs.cache-hit != 'true'
- run: opam pin -n . - run: opam pin -n .
- run: opam depext -yt containers containers-data containers-thread - run: opam depext -yt containers containers-data containers-thread
- run: opam install -t . --deps-only - run: opam install -t . --deps-only