From 763d9195897872b6ab8ba0c468d2013b1b1b9cbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Thir=C3=A9?= Date: Mon, 22 Jan 2024 20:27:03 +0100 Subject: [PATCH] Push Github actions file --- .github/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ dune-project | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d226ca2 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: build +run-name: Build Bam +on: [push] +jobs: + build_matrix: + runs-on: ubuntu-latest + strategy: + matrix: + ocaml-compiler: [ + # OCaml LTS version + ocaml.4.14.1, + # ocaml-system for Fedora 39 + ocaml.5.0.0, + # ocaml-system for Archlinux + ocaml.5.1.0 + ] + steps: + - uses: actions/checkout@v4 + - name: setting up opam... + uses: ocaml/setup-ocaml@v2 + with: + ocaml-compiler: ${{ matrix.ocaml-compiler }} + dune-cache: true + - name: Install dependencies + run: | + opam update + opam upgrade + opam install . --deps-only -t + - name: Build Bam + run: | + eval $(opam env) + dune build . diff --git a/dune-project b/dune-project index a209eb5..5fe4acb 100644 --- a/dune-project +++ b/dune-project @@ -19,7 +19,7 @@ (name bam) (synopsis "A property-based testing library with internal shrinking") (description "A property-based testing allowing to define generators with internal shrinking easily") - (depends ocaml dune pringo stdlib) + (depends ocaml dune pringo) (tags (test pbt shrinking internal)))