yoloize the github CI cache

This commit is contained in:
Simon Cruanes 2020-12-21 17:41:18 -05:00
parent b18a71efd6
commit 954f1c6765

View file

@ -10,18 +10,19 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@main
- uses: avsm/setup-ocaml@v1
with:
ocaml-version: ${{ matrix.ocaml }}
- 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:
ocaml-version: ${{ matrix.ocaml }}
if: steps.cache-opam.outputs.cache-hit != 'true'
- run: opam pin -n .
if: steps.cache-opam.outputs.cache-hit != 'true'
- run: opam depext -yt containers containers-data containers-thread
if: steps.cache-opam.outputs.cache-hit != 'true'
- run: opam install -t . --deps-only
if: ${{ matrix.os != 'windows-latest' }}
- run: opam install . --deps-only # no test deps