Skip to content

Commit 3277527

Browse files
committed
adding automation
1 parent dccc78a commit 3277527

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/mac.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build and test on Mac
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
deploy-owl:
13+
name: Install Owl
14+
runs-on: macos-latest
15+
16+
steps:
17+
- uses: actions/checkout@main
18+
19+
- name: Use OCaml
20+
uses: ocaml/setup-ocaml@v2
21+
with:
22+
ocaml-compiler: '5.1'
23+
# opam-local-packages: |
24+
# *.opam
25+
dune-cache: true
26+
allow-prerelease-opam: true
27+
28+
- name: Deps
29+
# git build-essential wget unzip aspcud m4 pkg-config libshp-dev libopenblas-dev liblapacke-dev
30+
run: brew install aspcud libshp-dev libopenblas-dev liblapacke-dev
31+
32+
- name: OCaml Deps
33+
run: opam install ocaml-compiler-libs alcotest conf-openblas ctypes dune-configurator stdio npy
34+
35+
- name: Compile Owl, install
36+
run: opam exec -- dune build @install
37+
38+
- name: Run tests
39+
run: |
40+
opam install owl-base
41+
opam exec -- dune runtest -j 1 --no-buffer -p owl

0 commit comments

Comments
 (0)