Skip to content

Commit 08fc9cf

Browse files
committed
github: update docs workflow to use latest setup-ocaml
Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
1 parent 8442197 commit 08fc9cf

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/docs.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,23 @@ jobs:
3131
- name: Update Ubuntu repositories
3232
run: sudo apt-get update
3333

34+
# We set DUNE_CACHE_STORAGE_MODE, it is required for dune cache to work inside opam for now,
35+
# otherwise it gets EXDEV and considers it a cache miss
3436
- name: Use ocaml
35-
uses: ocaml/setup-ocaml@v2
37+
uses: ocaml/setup-ocaml@v3
3638
with:
3739
ocaml-compiler: ${{ steps.dotenv.outputs.ocaml_version_full }}
3840
opam-repositories: |
3941
xs-opam: ${{ steps.dotenv.outputs.repository }}
42+
dune-cache: true
43+
opam-pin: false
44+
cache-prefix: v3-${{ steps.system-info.outputs.name }}-${{ steps.system-info.outputs.release }}
45+
env:
46+
DUNE_CACHE_STORAGE_MODE: copy
4047

4148
- name: Install dependencies
42-
run: opam pin list --short | xargs opam install --deps-only -v
49+
shell: bash
50+
run: opam install . --deps-only -v
4351

4452
- name: Generate xapi-storage docs
4553
run: |

0 commit comments

Comments
 (0)