Skip to content

Commit

Permalink
Make cache dependant
Browse files Browse the repository at this point in the history
  • Loading branch information
davesnx committed Jul 30, 2024
1 parent 51ca541 commit e0d01e8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,22 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Load opam cache when not Windows
- name: Load opam cache (when macos or ubuntu)
if: runner.os != 'Windows'
id: opam-cache
uses: actions/cache/restore@v3
with:
path: ~/.opam
key: opam-${{ matrix.os }}-${{ matrix.ocaml-compiler }}-${{ hashFiles('**.opam') }}

- name: Load opam cache (when windows)
if: runner.os == 'Windows'
id: opam-cache-windows
uses: actions/cache/restore@v3
with:
path: _opam
key: opam-${{ matrix.os }}-${{ matrix.ocaml-compiler }}-${{ hashFiles('**.opam') }}

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v3
with:
Expand Down

0 comments on commit e0d01e8

Please sign in to comment.