From 3277527e1cea0c1d91eaf196debbbf885d44b0e2 Mon Sep 17 00:00:00 2001 From: "J.Stark" Date: Thu, 7 Mar 2024 13:50:05 +0100 Subject: [PATCH] adding automation --- .github/workflows/mac.yml | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/mac.yml diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml new file mode 100644 index 000000000..90e25cdbb --- /dev/null +++ b/.github/workflows/mac.yml @@ -0,0 +1,41 @@ +name: Build and test on Mac + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + deploy-owl: + name: Install Owl + runs-on: macos-latest + + steps: + - uses: actions/checkout@main + + - name: Use OCaml + uses: ocaml/setup-ocaml@v2 + with: + ocaml-compiler: '5.1' + # opam-local-packages: | + # *.opam + dune-cache: true + allow-prerelease-opam: true + + - name: Deps + # git build-essential wget unzip aspcud m4 pkg-config libshp-dev libopenblas-dev liblapacke-dev + run: brew install aspcud libshp-dev libopenblas-dev liblapacke-dev + + - name: OCaml Deps + run: opam install ocaml-compiler-libs alcotest conf-openblas ctypes dune-configurator stdio npy + + - name: Compile Owl, install + run: opam exec -- dune build @install + + - name: Run tests + run: | + opam install owl-base + opam exec -- dune runtest -j 1 --no-buffer -p owl \ No newline at end of file