@@ -136,11 +136,6 @@ jobs:
136
136
git config --global core.autocrlf false
137
137
git config --global core.eol lf
138
138
139
- # see https://github.com/ocaml/setup-ocaml/issues/815
140
- - name : " Windows: set SHELLOPTS=igncr"
141
- if : runner.os == 'Windows'
142
- run : echo "SHELLOPTS=igncr" >>"$GITHUB_ENV"
143
-
144
139
- name : Checkout
145
140
uses : actions/checkout@v4
146
141
with :
@@ -160,12 +155,12 @@ jobs:
160
155
with :
161
156
# See https://github.com/ocaml/setup-ocaml/blob/b2105f9/packages/setup-ocaml/src/unix.ts#L9
162
157
packages : bubblewrap darcs g++-multilib gcc-multilib mercurial musl-tools rsync
163
- version : v1
158
+ version : v2
164
159
165
160
# matrix.ocaml_compiler may contain commas
166
161
- name : Get OPAM cache key
167
162
shell : bash
168
- run : echo "opam_cache_key=opam-env-v1 -${{ matrix.os }}-${{ matrix.ocaml_compiler }}-${{ hashFiles('dune-project') }}" | sed 's/,/-/g' >> $GITHUB_ENV
163
+ run : echo "opam_cache_key=opam-env-v2 -${{ matrix.os }}-${{ matrix.ocaml_compiler }}-${{ hashFiles('dune-project') }}" | sed 's/,/-/g' >> $GITHUB_ENV
169
164
170
165
- name : Restore OPAM environment
171
166
id : cache-opam-env
@@ -181,7 +176,7 @@ jobs:
181
176
key : ${{ env.opam_cache_key }}
182
177
183
178
- name : Use OCaml ${{matrix.ocaml_compiler}}
184
- uses : ocaml/setup-ocaml@v3.0.0
179
+ uses : ocaml/setup-ocaml@v3.0.7
185
180
if : steps.cache-opam-env.outputs.cache-hit != 'true'
186
181
with :
187
182
opam-repositories : |
@@ -260,6 +255,11 @@ jobs:
260
255
fi
261
256
shell : bash
262
257
258
+ # see https://github.com/ocaml/setup-ocaml/issues/815
259
+ - name : " Windows: set SHELLOPTS=igncr"
260
+ if : runner.os == 'Windows'
261
+ run : echo "SHELLOPTS=igncr" >>"$GITHUB_ENV"
262
+
263
263
- name : Build compiler
264
264
if : runner.os != 'Linux'
265
265
run : opam exec -- dune build --display quiet --profile release
0 commit comments