diff --git a/.github/workflows/opam.yml b/.github/workflows/opam.yml index cd24903..79673f6 100644 --- a/.github/workflows/opam.yml +++ b/.github/workflows/opam.yml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-latest] + os: [ubuntu-latest, macos-latest, windows-latest] ocaml-compiler: [4.12.0] steps: @@ -25,6 +25,11 @@ jobs: with: ocaml-compiler: ${{ matrix.ocaml-compiler }} + - name: Inspect depexts + run: | + opam exec -- which python + opam exec -- which cmake + - name: Install local dependencies run: opam install . --deps-only --with-test @@ -32,5 +37,4 @@ jobs: run: opam exec -- dune build - name: Run tests - run: | - opam exec -- dune runtest + run: opam exec -- dune runtest diff --git a/dune b/dune index df11143..df5a166 100644 --- a/dune +++ b/dune @@ -111,6 +111,7 @@ -G "Unix Makefiles" -DCMAKE_CXX_FLAGS=-Wno-unused-variable + -DCMAKE_SHARED_LIBRARY_PREFIX_CXX=lib -DBUILD_STATIC_LIB=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=binaryen) diff --git a/libbinaryen.opam b/libbinaryen.opam index 9f8ff22..5e67cf7 100644 --- a/libbinaryen.opam +++ b/libbinaryen.opam @@ -18,3 +18,6 @@ depends: [ "dune-configurator" {>= "2.9.1"} "ocaml" {>= "4.12"} ] +depexts: [ + ["gcc-g++"] { os-distribution = "cygwinports" } +]