Skip to content

Commit

Permalink
Try to get Windows CI running
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed Apr 24, 2024
1 parent 482112a commit 28972a1
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/opam-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ jobs:
os:
- macos-latest
- ubuntu-latest
# - windows-latest # for some reason windows build is not picking dune 3.5
- windows-latest # for some reason windows build is not picking dune 3.5
ocaml-compiler:
- ocaml-base-compiler.5.1.1
- ocaml.5.1.1
# - 'ocaml-base-compiler.5.2.0~alpha1'

runs-on: ${{ matrix.os }}

steps:
Expand All @@ -48,11 +47,30 @@ jobs:
env HOMEBREW_NO_AUTO_UPDATE=1 brew install tree
- name: Use OCaml ${{ matrix.ocaml-compiler }}
if: ${{ matrix.os != 'windows-latest' }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}

- name: Use OCaml ${{ matrix.ocaml-compiler }} (Windows)
if: ${{ matrix.os == 'windows-latest' }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }},ocaml-option-mingw
opam-repositories: |
dra27: https://github.com/dra27/opam-repository.git#windows-5.0
default: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
opam: https://github.com/ocaml/opam-repository.git
- name: Install dependencies (Windows)
if: ${{ matrix.os == 'windows-latest' }}
working-directory: melange
run: |
opam update
make opam-install-test
- name: Install dependencies
if: ${{ matrix.os != 'windows-latest' }}
working-directory: melange
run: |
opam update
Expand Down

0 comments on commit 28972a1

Please sign in to comment.