@@ -13,16 +13,20 @@ jobs:
1313 strategy :
1414 fail-fast : false
1515 matrix :
16- os :
17- - ubuntu-latest
18- ocaml-compiler :
19- - 4.14.x
20- - 5.00.x
21- - 5.01.x
22- - 5.02.x
16+ # os:
17+ # - ubuntu-latest
18+ # ocaml-compiler:
19+ # - 4.14.x
20+ # - 5.00.x
21+ # - 5.01.x
22+ # - 5.02.x
2323 include :
2424 - os : macos-latest
2525 ocaml-compiler : 5.02.x
26+ - os : windows-latest
27+ ocaml-compiler : 4.14.x
28+ - os : windows-latest
29+ ocaml-compiler : 5.02.x
2630
2731 runs-on : ${{ matrix.os }}
2832
6266 if : matrix.os == 'macos-latest' && steps.cache-binaryen.outputs.cache-hit != 'true'
6367 run : brew install ninja
6468
69+ - name : Install ninja (Windows)
70+ if : matrix.os == 'windows-latest' && steps.cache-binaryen.outputs.cache-hit != 'true'
71+ run : choco install ninja
72+
6573 - name : Build binaryen
6674 if : steps.cache-binaryen.outputs.cache-hit != 'true'
6775 working-directory : ./binaryen
8189 echo "$GITHUB_WORKSPACE/binaryen/bin" >> $GITHUB_PATH
8290
8391 - name : Restore cached OCaml
92+ if : matrix.os != 'windows-latest'
8493 id : cache-ocaml
8594 uses : actions/cache/restore@v4
8695 with :
@@ -116,7 +125,7 @@ jobs:
116125 echo /Users/runner/hostedtoolcache/opam/*/arm64 >> $GITHUB_PATH
117126
118127 - name : Cache OCaml
119- if : steps.cache-ocaml.outputs.cache-hit != 'true'
128+ if : matrix.os != 'windows-latest' && steps.cache-ocaml.outputs.cache-hit != 'true'
120129 uses : actions/cache/save@v4
121130 with :
122131 path : |
@@ -152,8 +161,16 @@ jobs:
152161
153162 - name : Pin wasm_of_ocaml
154163 working-directory : ./wasm_of_ocaml
164+ if : matrix.os != 'windows-latest'
165+ run : |
166+ opam pin add -n . --with-version $(< VERSION)
167+ shell : bash
168+
169+ - name : Pin wasm_of_ocaml
170+ working-directory : ./wasm_of_ocaml
171+ if : matrix.os == 'windows-latest'
155172 run : |
156- for i in *. opam; do opam pin add -n `basename $i .opam`.`< VERSION` .; done
173+ opam pin add -n . --with-version $(Get-Content VERSION)
157174
158175 - name : Install opam file parser
159176 run : opam install opam-format ocamlfind dune graphics
0 commit comments