diff --git a/.github/workflows/auto_format.yml b/.github/workflows/auto_format.yml index 60f8912..5e018d7 100644 --- a/.github/workflows/auto_format.yml +++ b/.github/workflows/auto_format.yml @@ -18,6 +18,7 @@ jobs: uses: ocaml/setup-ocaml@v2 with: ocaml-compiler: "5.1" + dune-cache: true allow-prerelease-opam: true opam-repositories: | default: https://github.com/ocaml/opam-repository.git diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 78df11d..6333693 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,6 +42,8 @@ jobs: - name: Set-up OCaml uses: ocaml/setup-ocaml@v2 with: + dune-cache: true + cache-prefix: dune-cache-${{ matrix.os }}-${{ matrix.ocaml-compiler }} ocaml-compiler: ${{ matrix.ocaml-compiler }} allow-prerelease-opam: ${{ matrix.allow-prerelease-opam }} opam-repositories: ${{ matrix.opam-repositories }}