Skip to content

Commit 28972a1

Browse files
committed
Try to get Windows CI running
1 parent 482112a commit 28972a1

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.github/workflows/opam-build.yml

+21-3
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@ jobs:
2323
os:
2424
- macos-latest
2525
- ubuntu-latest
26-
# - windows-latest # for some reason windows build is not picking dune 3.5
26+
- windows-latest # for some reason windows build is not picking dune 3.5
2727
ocaml-compiler:
28-
- ocaml-base-compiler.5.1.1
28+
- ocaml.5.1.1
2929
# - 'ocaml-base-compiler.5.2.0~alpha1'
30-
3130
runs-on: ${{ matrix.os }}
3231

3332
steps:
@@ -48,11 +47,30 @@ jobs:
4847
env HOMEBREW_NO_AUTO_UPDATE=1 brew install tree
4948
5049
- name: Use OCaml ${{ matrix.ocaml-compiler }}
50+
if: ${{ matrix.os != 'windows-latest' }}
5151
uses: ocaml/setup-ocaml@v2
5252
with:
5353
ocaml-compiler: ${{ matrix.ocaml-compiler }}
5454

55+
- name: Use OCaml ${{ matrix.ocaml-compiler }} (Windows)
56+
if: ${{ matrix.os == 'windows-latest' }}
57+
uses: ocaml/setup-ocaml@v2
58+
with:
59+
ocaml-compiler: ${{ matrix.ocaml-compiler }},ocaml-option-mingw
60+
opam-repositories: |
61+
dra27: https://github.com/dra27/opam-repository.git#windows-5.0
62+
default: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
63+
opam: https://github.com/ocaml/opam-repository.git
64+
65+
- name: Install dependencies (Windows)
66+
if: ${{ matrix.os == 'windows-latest' }}
67+
working-directory: melange
68+
run: |
69+
opam update
70+
make opam-install-test
71+
5572
- name: Install dependencies
73+
if: ${{ matrix.os != 'windows-latest' }}
5674
working-directory: melange
5775
run: |
5876
opam update

0 commit comments

Comments
 (0)