From afce1efa588a4b0247eace0ed9510fbfc0524732 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 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) 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..9f4b58e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +name: build +run-name: Build Bamm +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: Install system dependencies + run: sudo apt install opam + - name: Initialize Opam + run: opam init -n --bare + - name: Install dependencies + run: opam install . --deps-only -t + - name: Build Spatial Shell + run: | + eval $(opam env) + dune build .