Skip to content

Commit 14744cd

Browse files
committed
CI: Cache OPAM files during build
This is only for a dev/test build. We will rebuild completely when a release build is required.
1 parent 40cb669 commit 14744cd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build.yml

+7
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ jobs:
4141
- run: npm test
4242
working-directory: browser
4343

44+
- name: Cache OPAM
45+
uses: actions/cache@v3
46+
with:
47+
path: ~/.opam
48+
key: ${{ runner.os }}-opam-${{ matrix.ocaml-compiler }}-${{ hashFiles('**/*.opam') }}
49+
restore-keys: ${{ runner.os }}-opam-${{ matrix.ocaml-compiler }}-
50+
4451
- name: Setup OCaml ${{ matrix.ocaml-compiler }}
4552
uses: ocaml/setup-ocaml@v2
4653
with:

0 commit comments

Comments
 (0)