Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Commit 4ade33c

Browse files
committed
Source environment for windows
1 parent dc23c40 commit 4ade33c

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/build-release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,15 @@ jobs:
3636
opam install . --deps-only
3737
opam install dune
3838
39-
- name: Update OPAM environment
39+
- name: Update OPAM environment (macos/linux)
40+
if: runner.os != 'Windows'
4041
run: eval $(opam env)
4142

43+
- name: Update OPAM environment (windows)
44+
if: runner.os == 'Windows'
45+
run: (& opam env) -split '\r?\n' | ForEach-Object { Invoke-Expression $_ }
46+
shell: powershell
47+
4248
- name: Build binary
4349
run: opam exec -- dune build --profile release
4450

0 commit comments

Comments
 (0)