mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-06 11:15:43 -05:00
chore: add cache to CI
This commit is contained in:
parent
5ca4730968
commit
354e432a40
1 changed files with 8 additions and 0 deletions
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
|
|
@ -13,8 +13,16 @@ jobs:
|
|||
- uses: avsm/setup-ocaml@master
|
||||
with:
|
||||
ocaml-version: ${{ matrix.ocaml-version }}
|
||||
- name: cache opam
|
||||
id: cache-opam
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: _opam
|
||||
key: opam-${{matrix.operating-system}}-${{matrix.ocaml-version}}
|
||||
- run: opam pin -n .
|
||||
- run: opam depext -yt sidekick-bin
|
||||
if: steps.cache-opam.outputs.cache-hit != 'true'
|
||||
- run: opam install -t . --deps-only
|
||||
if: steps.cache-opam.outputs.cache-hit != 'true'
|
||||
- run: opam exec -- dune build
|
||||
- run: opam exec -- dune runtest
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue