Skip to content

Commit

Permalink
CI: avoid mixing caches from different OSes
Browse files Browse the repository at this point in the history
This is a bug in setup-ocaml@v3 ocaml/setup-ocaml#839

Work it around by defining our own cache prefix key as suggested in EXAMPLES.md

Signed-off-by: Edwin Török <[email protected]>
  • Loading branch information
edwintorok committed Aug 5, 2024
1 parent cb3cd2d commit 9da37ad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/setup-xapi-environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ runs:
id: dotenv
uses: falti/dotenv-action@v1

- name: Load environment file
id: dotenv
uses: falti/dotenv-action@v1
path: /etc/os-release

- name: Update Ubuntu repositories
shell: bash
run: sudo apt-get update
Expand Down Expand Up @@ -52,6 +57,7 @@ runs:
xs-opam: ${{ steps.dotenv.outputs.repository }}
dune-cache: true
opam-pin: false
cache-prefix: v3-${{ ID }}-${{ VERSION_ID }}
env:
DUNE_CACHE_STORAGE_MODE: copy

Expand Down

0 comments on commit 9da37ad

Please sign in to comment.