Skip to content

Commit e6070de

Browse files
authored
fix: Ensure project can build with Opam on Windows (#33)
1 parent f30fe0a commit e6070de

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.github/workflows/opam.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
os: [ubuntu-latest, macos-latest]
14+
os: [ubuntu-latest, macos-latest, windows-latest]
1515
ocaml-compiler: [4.12.0]
1616

1717
steps:
@@ -25,12 +25,16 @@ jobs:
2525
with:
2626
ocaml-compiler: ${{ matrix.ocaml-compiler }}
2727

28+
- name: Inspect depexts
29+
run: |
30+
opam exec -- which python
31+
opam exec -- which cmake
32+
2833
- name: Install local dependencies
2934
run: opam install . --deps-only --with-test
3035

3136
- name: Build project
3237
run: opam exec -- dune build
3338

3439
- name: Run tests
35-
run: |
36-
opam exec -- dune runtest
40+
run: opam exec -- dune runtest

dune

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
binaryen
114114
-G
115115
"Unix Makefiles"
116+
-DCMAKE_SHARED_LIBRARY_PREFIX_CXX=lib
116117
-DBUILD_STATIC_LIB=OFF
117118
-DCMAKE_BUILD_TYPE=Release
118119
-DCMAKE_INSTALL_PREFIX=binaryen)

libbinaryen.opam

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ depends: [
1818
"dune-configurator" {>= "2.9.1"}
1919
"ocaml" {>= "4.12"}
2020
]
21+
depexts: [
22+
["gcc-g++"] { os-distribution = "cygwinports" }
23+
]

0 commit comments

Comments
 (0)