From f2a472ab446aa322b23dff1faebccba6c0cd4ca4 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Mon, 21 Dec 2020 16:34:02 -0500 Subject: [PATCH] try to enable cache in CI --- .github/workflows/main.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5d0d982e..ce62dbcf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,9 +10,16 @@ jobs: runs-on: ${{ matrix.os }} steps: - 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: ocaml-version: ${{ matrix.ocaml }} + if: steps.cache-opam.outputs.cache-hit != 'true' - run: opam pin -n . - run: opam depext -yt containers containers-data containers-thread - run: opam install -t . --deps-only