Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Ensure project can build with Opam on Windows #33

Merged
merged 1 commit into from Jan 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/opam.yml
Expand Up @@ -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:
Expand All @@ -25,12 +25,16 @@ 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

- name: Build project
run: opam exec -- dune build

- name: Run tests
run: |
opam exec -- dune runtest
run: opam exec -- dune runtest
1 change: 1 addition & 0 deletions dune
Expand Up @@ -113,6 +113,7 @@
binaryen
-G
"Unix Makefiles"
-DCMAKE_SHARED_LIBRARY_PREFIX_CXX=lib
-DBUILD_STATIC_LIB=OFF
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=binaryen)
Expand Down
3 changes: 3 additions & 0 deletions libbinaryen.opam
Expand Up @@ -18,3 +18,6 @@ depends: [
"dune-configurator" {>= "2.9.1"}
"ocaml" {>= "4.12"}
]
depexts: [
["gcc-g++"] { os-distribution = "cygwinports" }
]