Skip to content

Commit e9b83c4

Browse files
committed
[maintenance]: update CI to latest setup-ocaml to fix failure
Signed-off-by: Edwin Török <[email protected]>
1 parent f86743a commit e9b83c4

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/ocaml-ci.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,27 @@ jobs:
1313

1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v4
1717

1818
- name: Pull configuration from xs-opam
1919
run: |
2020
curl --fail --silent https://raw.githubusercontent.com/xapi-project/xs-opam/master/tools/xs-opam-ci.env | cut -f2 -d " " > .env
2121
2222
- name: Load environment file
2323
id: dotenv
24-
uses: falti/dotenv-action@v0.2.4
24+
uses: falti/dotenv-action@v1.1.4
2525

2626
- name: Use ocaml
27-
uses: avsm/setup-ocaml@v1
27+
uses: avsm/setup-ocaml@v3
2828
with:
29-
ocaml-version: ${{ steps.dotenv.outputs.ocaml_version_full }}
30-
opam-repository: ${{ steps.dotenv.outputs.repository }}
29+
ocaml-compiler: ${{ steps.dotenv.outputs.ocaml_version_full }}
30+
opam-repositories: |
31+
xs-opam: ${{ steps.dotenv.outputs.repository }}
32+
dune-cache: true
33+
opam-pin: false
34+
cache-prefix: v3-${{ steps.system-info.outputs.name }}-${{ steps.system-info.outputs.release }}
35+
env:
36+
DUNE_CACHE_STORAGE_MODE: copy
3137

3238
- name: Install dependencies
3339
run: |

0 commit comments

Comments
 (0)