Skip to content

Test windows support #307

Test windows support

Test windows support #307

Workflow file for this run

name: main
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON
jobs:
build:
strategy:
matrix:
ocaml-compiler:
- 5.0
- 5.1
- 5.2
- 5.3
- 5.4
os:
- ubuntu-latest
- macos-15
- windows-latest
exclude:
- os: windows-latest
ocaml-compiler: 5.0
- os: windows-latest
ocaml-compiler: 5.1
- os: windows-latest
ocaml-compiler: 5.2
- os: windows-latest
ocaml-compiler: 5.4
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v3
with:
opam-pin: false
opam-depext: false
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- name: Pin patched hdr_histogram
run: opam pin hdr_histogram https://github.com/tmcgilchrist/hdr_histogram_ocaml.git#windows_support --no-action
if: runner.os == 'Windows'
- run: opam install . --deps-only --with-test
- run: opam exec -- dune build
- run: opam exec -- dune runtest
- run: |
opam install . --with-dev-setup --with-test --deps-only
opam exec -- dune build @fmt
if: runner.os != 'Windows'