mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
try to enable cache in CI
This commit is contained in:
parent
fd1a43497d
commit
330e026d0a
1 changed files with 8 additions and 1 deletions
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue