Skip to content

Commit 37c578e

Browse files
committed
Cache reanalyze, too
1 parent 2d5a638 commit 37c578e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/ci.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ jobs:
153153
# matrix.ocaml_compiler may contain commas
154154
- name: Get OPAM cache key
155155
shell: bash
156-
run: echo "opam_cache_key=opam-env-v6-${{ matrix.os }}-${{ matrix.ocaml_compiler }}-${{ hashFiles('dune-project') }}" | sed 's/,/-/g' >> $GITHUB_ENV
156+
run: echo "opam_cache_key=opam-env-v7-${{ matrix.os }}-${{ matrix.ocaml_compiler }}-${{ matrix.run_reanalyze }}-${{ hashFiles('dune-project') }}" | sed 's/,/-/g' >> $GITHUB_ENV
157157

158158
- name: Restore OPAM environment
159159
id: cache-opam-env
@@ -191,6 +191,10 @@ jobs:
191191
if: steps.cache-opam-env.outputs.cache-hit != 'true'
192192
run: opam install . --deps-only --with-test
193193

194+
- name: "Install reanalyze"
195+
if: matrix.run_reanalyze
196+
run: opam install reanalyze
197+
194198
- name: Cache OPAM environment
195199
if: steps.cache-opam-env.outputs.cache-hit != 'true'
196200
uses: actions/cache/save@v4
@@ -303,9 +307,7 @@ jobs:
303307

304308
- name: "Syntax: Run reanalyze"
305309
if: matrix.run_reanalyze
306-
run: |
307-
opam install reanalyze
308-
opam exec -- make reanalyze
310+
run: opam exec -- make reanalyze
309311

310312
- name: Build runtime/stdlib
311313
run: ./scripts/buildRuntime.sh

0 commit comments

Comments
 (0)