Skip to content

Commit 7d109b3

Browse files
committed
let me just sleep please
1 parent d81347c commit 7d109b3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ jobs:
220220
path: |
221221
${{ runner.tool_cache }}/opam
222222
~/.opam
223-
key: opam-tool-v1-${{ matrix.os }}-${{ hashFiles('dune-project') }}
223+
_opam
224+
key: opam-tool-v2-${{ matrix.os }}-${{ hashFiles('dune-project') }}
224225

225226
- name: Use OCaml ${{matrix.ocaml_compiler}}
226227
uses: ocaml/setup-ocaml@v2
@@ -253,7 +254,8 @@ jobs:
253254
path: |
254255
${{ runner.tool_cache }}/opam
255256
~/.opam
256-
key: opam-tool-v1-${{ matrix.os }}-${{ hashFiles('dune-project') }}
257+
_opam
258+
key: opam-tool-v2-${{ matrix.os }}-${{ hashFiles('dune-project') }}
257259

258260
- name: Get OPAM env
259261
if: steps.cache-opam-tool.outputs.cache-hit != 'true'
@@ -269,7 +271,7 @@ jobs:
269271
path: |
270272
.opam-path
271273
.opam-env
272-
key: opam-path-${{ matrix.os }}
274+
key: opam-env-v1-${{ matrix.os }}
273275

274276
- name: Restore OPAM env
275277
if: steps.cache-opam-tool.outputs.cache-hit == 'true'
@@ -278,7 +280,7 @@ jobs:
278280
path: |
279281
.opam-path
280282
.opam-env
281-
key: opam-path-${{ matrix.os }}
283+
key: opam-env-v1-${{ matrix.os }}
282284

283285
- name: Use cached OPAM env - $PATH
284286
if: steps.cache-opam-tool.outputs.cache-hit == 'true'
@@ -290,8 +292,7 @@ jobs:
290292
- name: Use cached OPAM env - Environment variables
291293
if: steps.cache-opam-tool.outputs.cache-hit == 'true'
292294
run: |
293-
OPAM_ENV="$(cat .opam-env)"
294-
sed "s/'//g; s/; export .*//g" "$OPAM_ENV" >> "$GITHUB_ENV"
295+
sed "s/'//g; s/; export .*//g" .opam-env >> "$GITHUB_ENV"
295296
296297
- name: "Build compiler"
297298
if: runner.os != 'Linux'

0 commit comments

Comments
 (0)