mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
yoloize the github CI cache
This commit is contained in:
parent
b18a71efd6
commit
954f1c6765
1 changed files with 5 additions and 4 deletions
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue