Skip to content

Commit 02495df

Browse files
committed
fix Windows
1 parent 8fffff7 commit 02495df

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,11 @@ jobs:
278278
- name: Get OPAM env
279279
if: steps.cache-opam-tool.outputs.cache-hit != 'true'
280280
run: |
281-
which opam > .opam-path
281+
if [[ "$RUNNER_OS" == "Windows" ]]; then
282+
which opam.exe > .opam-path
283+
else
284+
which opam > .opam-path
285+
fi
282286
opam env > .opam-env
283287
shell: bash
284288

@@ -305,7 +309,9 @@ jobs:
305309
if: steps.cache-opam-tool.outputs.cache-hit == 'true'
306310
run: |
307311
OPAM_PATH="$(cat .opam-path)"
308-
chmod +x "$OPAM_PATH"
312+
if [[ "$RUNNER_OS" != "Windows" ]]; then
313+
chmod +x "$OPAM_PATH"
314+
elif
309315
dirname "$OPAM_PATH" >> "$GITHUB_PATH"
310316
shell: bash
311317

0 commit comments

Comments
 (0)